English 中文(简体)
404:NOT_FOUND on Vercel的部署
原标题:404: NOT_FOUND on Vercel deployment

我利用“kra-UI”和三.js建立了网络3应用。 我在网站上增加了一个麦加的集成,帮助在聪明合同上对北美自由贸易区进行 m弄。

当我这样做时,

npm run dev

On my machine, my code is running extremely smoothly. I don t see any errors on my localhost:3000 whereas when I am deploying the website using vercel, I am getting this error again and again which says Code NOT_FOUND Here s the screenshot of that error:

“Error

我通过我的VSCode终端使用这个网站。

vercel

指挥。

I selected everything as default which came after executing this 指挥。

这里的浮点是为了更多地了解这一错误:斜线”。

我也试图通过实际上韦杰尔网站和进口光灯塔来进行部署,但这也起到了一定的作用。

URL的错误网页是:-https://minting-website-frontend.vercel.app/

任何人都能够帮助我克服这一错误,我早就坐在这里。

最佳回答

我曾经历过这种情况,我为解决这一问题所做的是:

  1. create a vercel.json file in my project.
  2. Enter the following code in the vercel.json file
{
    "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
  1. re-deploy the project
问题回答

Go to vercel project settings->General->Build & Development Settings and choose whatever framework your project is using in my case My project was using Next js but it was chosen Others. So when i changed it from others to Next Js problem solved

你们是否相信你会回看好“URL”?

您需要操作<代码>vercel-prod,以便部署到生产,否则,你只是重新部署预审版本。

请分享<代码>vercel的产出。 您的终端指挥?

我有同样的问题,但有一个项目在Svelte(而不是SvelteKit)上建。

对我的工作是:

在Vercel dash板开立项目。 Goto 项目环境。 <>Build & Development Settings section, Change Framework Preset to other

我也知道有Svelte选择,但不是为我工作。 我是后盾,在前端仍然有新鲜事,但这是地雷的固定点。

我刚才谈到这个问题太长了,但我的问题是,我的网页被推向生产。 以此提醒人们,确保你与正在制作的网页重新链接





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签