What problem does it solve?
This Skill provides a Next.js adapter for embedding emulators directly into Next.js applications, solving the challenge of integrating emulators with Next.js for OAuth, state management, and persistent storage.
Core Features & Use Cases
- Next.js Integration: Embed emulators within a Next.js app, enabling direct interaction with emulated services.
- OAuth for Vercel: Sets up same-origin OAuth for Vercel preview deployments, simplifying OAuth flows.
- Catch-All Route Handler: Creates a catch-all route handler for emulator traffic, making it easy to serve emulator content.
- Auth.js/NextAuth Configuration: Configures Auth.js/NextAuth with embedded emulators for secure authentication.
- Persistence: Adds persistence to embedded emulators to maintain state across restarts.
- Use Case: For a developer building a Next.js application that requires OAuth with GitHub or Google, this Skill allows for easy integration and state management of emulated services.
Quick Start
Use the next skill to integrate GitHub emulators into your Next.js app by running the command: npm install @emulators/adapter-next @emulators/github.