Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

clerk/edge-demo

Repository files navigation

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

Clerk Authentication at the edge

This demo features authentication at the edge using Clerk.

Demo

https://edge.clerk.app/

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

Getting Started

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.local

Then 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_HERE

Next, run Next.js in development mode:

npm install
npm run dev

# or

yarn
yarn dev

About

Authentication at Edge with Clerk+Next.js

Topics

Resources

Stars

Watchers

Forks

Contributors 7