Clerk Authentication Starter
A starter to use Clerk Auth components in EdgeOne Pages.
Framework | Next.js |
Authentication | Clerk |
This template is an example template based on Clerk Authentication and Next.js static generation.
Register on Clerk and create a new project.
Go to the Dashboard and copy the CLERK_PUBLISHABLE_KEY
for later use.
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${your CLERK_PUBLISHABLE_KEY}
// The following paths are fixed in this project
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/account
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/account
Install dependencies: npm install
Local development: npm run build