ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
73.24k stars 58.13k forks source link

[Bug] vercel手动部署,访问网页提示404: NOT_FOUND #1506

Closed coppea closed 1 year ago

coppea commented 1 year ago

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

描述问题 vercel手动部署后,访问网页提示404: NOT_FOUND

如何复现 手动部署后访问chat-gpt-next-web-xxx.vercel.app提示 截图 image

一些必要的信息

日志

[13:12:57.919] Running build in San Francisco, USA (West) – sfo1 [13:12:57.980] Cloning github.com/coppea/ChatGPT-Next-Web (Branch: main, Commit: 9e602eb) [13:12:58.115] Previous build cache not available [13:12:58.811] Cloning completed: 831.473ms [13:12:58.998] Running "vercel build" [13:12:59.664] Vercel CLI 29.2.0 [13:13:00.346] Installing dependencies... [13:13:00.719] yarn install v1.22.17 [13:13:00.746] warning package.json: License should be a valid SPDX license expression [13:13:00.806] warning chatgpt-next-web@1.9.3: License should be a valid SPDX license expression [13:13:00.808] [1/4] Resolving packages... [13:13:01.197] [2/4] Fetching packages... [13:13:30.972] [3/4] Linking dependencies... [13:13:30.985] warning "mermaid > @khanacademy/simple-markdown@0.8.6" has incorrect peer dependency "react@16.14.0". [13:13:30.985] warning "mermaid > @khanacademy/simple-markdown@0.8.6" has incorrect peer dependency "react-dom@16.14.0". [13:13:43.266] [4/4] Building fresh packages... [13:13:43.294] $ husky install [13:13:43.384] husky - Git hooks installed [13:13:43.391] Done in 42.68s. [13:13:43.427] Running "yarn run build" [13:13:43.685] yarn run v1.22.17 [13:13:43.711] warning package.json: License should be a valid SPDX license expression [13:13:43.729] $ yarn fetch && next build [13:13:44.016] warning package.json: License should be a valid SPDX license expression [13:13:44.036] $ node ./scripts/fetch-prompts.mjs [13:13:44.164] [Fetch] fetching cn prompts... [13:13:44.216] [Fetch] fetching en prompts... [13:13:45.885] [Fetch] saved to ./public/prompts.json [13:13:49.765] Attention: Next.js now collects completely anonymous telemetry regarding usage. [13:13:49.766] This information is used to shape Next.js' roadmap and prioritize features. [13:13:49.766] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: [13:13:49.767] https://nextjs.org/telemetry [13:13:49.767] [13:13:49.894] - info Creating an optimized production build... [13:14:45.538] - info Compiled successfully [13:14:45.541] - info Linting and checking validity of types... [13:14:47.797] Pages directory cannot be found at /vercel/path0/pages or /vercel/path0/src/pages. If using a custom path, please configure with the no-html-link-for-pages rule in your eslint config file. [13:14:52.833] - info Collecting page data... [13:15:13.560] - info Generating static pages (0/3) [13:15:13.743] [Lang] failed to detect user lang. [13:15:13.767] [Lang] failed to detect user lang. [13:15:13.797] - info Generating static pages (3/3) [13:15:13.813] - info Finalizing page optimization... [13:15:13.817] [13:15:13.841] Route (app) Size First Load JS [13:15:13.841] ┌ ○ / 54.1 kB 132 kB [13:15:13.841] ├ ℇ /api/config 0 B 0 B [13:15:13.841] └ ℇ /api/openai/[...path] 0 B 0 B [13:15:13.842] + First Load JS shared by all 78.2 kB [13:15:13.842] ├ chunks/2443530c-8472a14c2bc9438b.js 50.5 kB [13:15:13.842] ├ chunks/8139-e372e5db29625bb0.js 24.5 kB [13:15:13.842] ├ chunks/main-app-c96382a8aef4c023.js 218 B [13:15:13.842] └ chunks/webpack-dad6fcce176771fb.js 2.95 kB [13:15:13.842] [13:15:13.842] Route (pages) Size First Load JS [13:15:13.844] ─ ○ /404 181 B 91.4 kB [13:15:13.844] + First Load JS shared by all 91.3 kB [13:15:13.844] ├ chunks/main-bdddb1dd23811b8b.js 88.1 kB [13:15:13.844] ├ chunks/pages/_app-749d53c4cd4de805.js 193 B [13:15:13.844] └ chunks/webpack-dad6fcce176771fb.js 2.95 kB [13:15:13.844] [13:15:13.844] ℇ (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components) [13:15:13.844] ○ (Static) automatically rendered as static HTML (uses no initial props) [13:15:13.845] [13:15:14.461] Done in 90.78s. [13:15:14.588] Build Completed in /vercel/output [2m] [13:15:14.696] Deploying outputs... [13:15:16.235] Deployment completed [13:15:30.757] Uploading build cache [108.55 MB]... [13:15:32.701] Build cache uploaded: 1.944s

Yidadaa commented 1 year ago

改过代码?

coppea commented 1 year ago

直接fork,无任何改动,就添加了环境变量

是不是最近提交的代码有问题

Yidadaa commented 1 year ago

不太可能有问题,不然演示站早就寄了,你删掉 vercel project 重新部署下?

leiziwu33 commented 1 year ago

我也是这个问题,解决了吗

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


I have this problem too, have you solved it?

Cyb3rN8 commented 9 months ago

same problem here

coppea commented 9 months ago

时间长了,我忘记怎么处理了。 好像是,我fork了再在vervel部署,之前在vercel都删掉,部署成功后还有问题,就等24小时

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


As time went by, I forgot how to deal with it. It seems that I forked it and then deployed it in vervel. I deleted it in vercel before. If there are still problems after the deployment is successful, just wait 24 hours.

wbxxgit commented 1 day ago

怎么解决的?现在比较蒙,不知道是否部署成功?或者是部署的问题

Issues-translate-bot commented 1 day ago

Bot detected the issue body's language is not English, translate it automatically.


How to solve it? It's a bit confusing now. I don't know if the deployment was successful? Or is it a deployment problem?