English 中文(简体)
书记官——当我试图在下杰斯项目上用快车进行部署时,中风差错
原标题:clerk - middleware error when I try to deploy with vercel in nextjs project

我在试图在韦杰尔部署时遇到以下错误,但我已经把我所要求的秘密钥匙放在我的申请中。 我在几次部署之前没有发现这种错误。

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=/
问题回答

我有同样的问题。 I m 获得Vercel的401号法典的启发。





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签