Warning
This repository has been archived as of January 11, 2024 and will not be further maintained. If you are curious about this repo and looking for help, please join our Discord https://clerk.com/discord
This demo features authentication at the edge using Clerk.
Deploy the example using Vercel:
You'll need to have an account with Clerk. Once that's done, copy the .env.example file in this directory to .env.local (which will be ignored by Git):
cp .env.example .env.localThen open .env.local and set the environment variables to match the settings of your Clerk application. It should look something like this (replace the values with your own Clerk's dashboard):
NEXT_PUBLIC_CLERK_FRONTEND_API=foo.bar.lcl.dev
CLERK_API_KEY=test_lcyh0EbavaYPZBnyUbRBGtSo1dELNxJSLC
CLERK_JWT_KEY=YOUR_CLERK_JWT_KEY_GOES_HERENext, run Next.js in development mode:
npm install
npm run dev
# or
yarn
yarn dev