我在试图在韦杰尔部署时遇到以下错误,但我已经把我所要求的秘密钥匙放在我的申请中。 我在几次部署之前没有发现这种错误。
what could be the reason?
这些错误是我发现的;
[GET] [middleware: "middleware"] / reason=EDGE_FUNCTION_INVOCATION_FAILED, status=500, user_error=true
纽约总部
Error: Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
at (node_modules/@clerk/backend/dist/esm/index.js:697:10)
at (node_modules/@clerk/backend/dist/esm/index.js:2767:2)
at (node_modules/@clerk/backend/dist/esm/index.js:2874:11)
at (node_modules/@clerk/nextjs/dist/esm/server/authenticateRequest.js:16:27)
at (node_modules/@clerk/nextjs/dist/esm/server/authMiddleware.js:64:31)
at (node_modules/next/dist/esm/server/web/adapter.js:157:15)
纽约总部
and some files;
import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
publicRoutes: ["/","/board"],
});
export const config = {
matcher: ["/((?!.+\.[\w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
};
纽约总部
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_blablabblablablablablablablabla
CLERK_SECRET_KEY=sk_test_blablablablablablablablblablabla
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/