Next.js Discord

Discord Forum

Error: Missing Clerk Secret Key or API Key.

Unanswered
Otterhound posted this in #help-forum
Open in Discord
OtterhoundOP
Getting this error while deploying in vercel and i have put the key in vercel environment variable

9 Replies

Toyger
maybe you made some mistake in name, or deselected prodcution environment
also you can try redeploy last commit maybe there was some problems with build
OtterhoundOP
I did check all the name
Toyger
can you send screenshot with environment variable page from vercel with blurred keys
OtterhoundOP
and this is log
Toyger
are you using this for middleware?
import { authMiddleware } from "@clerk/nextjs";
OtterhoundOP
Yes
Toyger
just tried on blank project, everything works fine.
try to remove and add again environment variables and then redeploy again.
OtterhoundOP
Ok thanks