holdenH
Convex Community8mo ago
2 replies
holden

Clerk/Convex setup issue

I have a NextJS app using both Convex + Clerk, and I'm now following the docs here to get Clerk/Convex to work together: https://docs.convex.dev/auth/clerk#nextjs

I've set NEXT_PUBLIC_CLERK_FRONTEND_API_URL in my .env.local file, but getting this error when I run npx convex dev:

✖ Environment variable NEXT_PUBLIC_CLERK_FRONTEND_API_URL is used in auth config file but its value was not set.
Go to:

    https://dashboard.convex.dev/d/adjoining-pika-609/settings/environment-variables?var=NEXT_PUBLIC_CLERK_FRONTEND_API_URL

  to set it up. 


It works if I set that env var in my Convex dev env, but seems odd to put a NEXT_PUBLIC var there? Wondering if the docs might be outdated?
Clerk is an authentication platform providing login via
Convex & Clerk | Convex Developer Hub
Was this page helpful?