Neon's template for Next.js with NeonAuth
This is a Next.js project using the App Router that servers as template for the Neon Auth integration with Stack Auth.
Install dependencies:
npm install
Create .env.local
file and copy the variables from the Neon Auth dashboard:
# Stack Auth
NEXT_PUBLIC_STACK_PROJECT_ID=
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=
STACK_SECRET_SERVER_KEY=
# Database connections
DATABASE_URL= # neondb_owner role connection
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Contributions are welcome! Please feel free to submit a Pull Request.