Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 按照文档部署到cloudflare部署失败 #5168

Closed
zc360 opened this issue Aug 1, 2024 · 11 comments
Closed

[Bug] 按照文档部署到cloudflare部署失败 #5168

zc360 opened this issue Aug 1, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@zc360
Copy link

zc360 commented Aug 1, 2024

📦 Deployment Method

Other

📌 Version

b3219f5

💻 Operating System

Windows

📌 System Version

22631.3958

🌐 Browser

Edge

📌 Browser Version

127.0.2651.74 (正式版本) (64 位)

🐛 Bug Description

按照 https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/docs/cloudflare-pages-en.md 部署,重复试了好多次都失败

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

输出日志:
2024-08-01T20:02:29.120301954Z Cloning repository...
2024-08-01T20:02:29.931073541Z From https://github.com/zc360/ChatGPT-Next-Web
2024-08-01T20:02:29.931438284Z * branch b3219f5 -> FETCH_HEAD
2024-08-01T20:02:29.931450627Z
2024-08-01T20:02:29.999531221Z HEAD is now at b3219f5 Merge pull request #5157 from ConnectAI-E/feature/tencent
2024-08-01T20:02:29.999753086Z
2024-08-01T20:02:30.084008173Z
2024-08-01T20:02:30.084466713Z Using v2 root directory strategy
2024-08-01T20:02:30.108489077Z Success: Finished cloning repository files
2024-08-01T20:02:31.818399543Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-08-01T20:02:31.818887774Z
2024-08-01T20:02:31.917720635Z No wrangler.toml file found. Continuing.
2024-08-01T20:02:32.104017783Z Detected the following tools from environment: [email protected], [email protected]
2024-08-01T20:02:32.104056353Z Installing nodejs 20.1.0
2024-08-01T20:02:33.338007558Z Trying to update node-build... ok
2024-08-01T20:02:33.438841358Z To follow progress, use 'tail -f /tmp/node-build.20240801200233.493.log' or pass --verbose
2024-08-01T20:02:33.560528802Z Downloading node-v20.1.0-linux-x64.tar.gz...
2024-08-01T20:02:33.685984774Z -> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
2024-08-01T20:02:35.25203897Z Installing node-v20.1.0-linux-x64...
2024-08-01T20:02:35.634124901Z Installed node-v20.1.0-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/20.1.0
2024-08-01T20:02:35.634505565Z
2024-08-01T20:02:37.097390866Z Preparing [email protected] for immediate activation...
2024-08-01T20:02:37.789707856Z Installing project dependencies: yarn --pure-lockfile --no-progress --emoji false
2024-08-01T20:02:38.310193729Z yarn install v1.22.19
2024-08-01T20:02:38.374195868Z [1/4] Resolving packages...
2024-08-01T20:02:38.582800398Z [2/4] Fetching packages...
2024-08-01T20:03:11.039043727Z [3/4] Linking dependencies...
2024-08-01T20:03:15.678738435Z [4/4] Building fresh packages...
2024-08-01T20:03:15.899417049Z $ husky install
2024-08-01T20:03:15.978013325Z husky - Git hooks installed
2024-08-01T20:03:15.984720582Z Done in 37.68s.
2024-08-01T20:03:16.025869992Z Executing user command: npx @cloudflare/next-on-pages --experimental-minify
2024-08-01T20:03:17.576608043Z npm WARN exec The following package was not found and will be installed: @cloudflare/[email protected]
2024-08-01T20:03:23.060908001Z npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2024-08-01T20:03:23.081126894Z npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2024-08-01T20:03:23.502657374Z npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-08-01T20:03:23.62772375Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.714227295Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.793709957Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.89284272Z npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-01T20:03:24.102642279Z npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-08-01T20:03:24.251351919Z npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-08-01T20:03:24.393909994Z npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
2024-08-01T20:03:28.058556559Z ⚡️ @cloudflare/next-on-pages CLI v.1.13.1
2024-08-01T20:03:28.059975413Z
2024-08-01T20:03:28.060528751Z ⚡️ Warning: the --experimental-minify|-e flag is deprecated and doesn't produce any effect, the
2024-08-01T20:03:28.060553349Z ⚡️ (previously named) experimental minification is now enabled by default.
2024-08-01T20:03:28.06065238Z ⚡️
2024-08-01T20:03:28.060967919Z ⚡️ Note: if you're using the --experimental-minify|-e flag in your build command please remove it
2024-08-01T20:03:28.060985092Z ⚡️ as it will be removed in a future version of the package (causing your command to fail).
2024-08-01T20:03:28.061149373Z
2024-08-01T20:03:28.570571999Z ⚡️ Detected Package Manager: npm (9.6.4)
2024-08-01T20:03:28.570771345Z
2024-08-01T20:03:28.570916342Z ⚡️ The project is set up for yarn but it is currently being run via npm this might lead to build errors, please be sure to use the same package manager your project uses when running @cloudflare/next-on-pages
2024-08-01T20:03:28.571061925Z
2024-08-01T20:03:28.571177804Z ⚡️ Preparing project...
2024-08-01T20:03:28.573960281Z ⚡️ Project is ready
2024-08-01T20:03:28.574235275Z ⚡️ Building project...
2024-08-01T20:03:29.935508311Z ▲ npm WARN exec
2024-08-01T20:03:29.935620814Z ▲ The following package was not found and will be installed: [email protected]
2024-08-01T20:03:33.227837508Z ▲ npm
2024-08-01T20:03:33.22868732Z ▲ WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-08-01T20:03:33.246333576Z ▲ npm WARN
2024-08-01T20:03:33.246598343Z ▲ deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.292312384Z ▲ npm
2024-08-01T20:03:33.29265297Z ▲ WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-01T20:03:33.309891528Z ▲ npm
2024-08-01T20:03:33.310455333Z ▲ WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.320690464Z ▲ npm WARN
2024-08-01T20:03:33.321153084Z ▲ deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-08-01T20:03:33.362912738Z ▲ npm WARN deprecated
2024-08-01T20:03:33.363217746Z ▲ [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
2024-08-01T20:03:33.386066274Z ▲ npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.405330549Z ▲ npm WARN deprecated
2024-08-01T20:03:33.405547193Z ▲ [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-08-01T20:03:34.521105862Z ▲ Vercel CLI 35.2.2
2024-08-01T20:03:34.826734899Z ▲ Installing dependencies...
2024-08-01T20:03:35.078268484Z ▲ yarn install v1.22.19
2024-08-01T20:03:35.141681064Z ▲ [1/4] Resolving packages...
2024-08-01T20:03:35.340082363Z ▲ success Already up-to-date.
2024-08-01T20:03:35.350444556Z ▲ $ husky install
2024-08-01T20:03:35.435681453Z ▲ husky - Git hooks installed
2024-08-01T20:03:35.442593332Z ▲ Done in 0.37s.
2024-08-01T20:03:35.464341637Z ▲ Detected Next.js version: 14.1.1
2024-08-01T20:03:35.46641462Z ▲ Running "yarn run build"
2024-08-01T20:03:35.70298656Z ▲ yarn run v1.22.19
2024-08-01T20:03:35.728726805Z ▲ $ yarn mask && cross-env BUILD_MODE=standalone next build
2024-08-01T20:03:35.949015845Z ▲ $ npx tsx app/masks/build.ts
2024-08-01T20:03:37.528191865Z ▲ [Next] build mode standalone
2024-08-01T20:03:37.528657451Z ▲ [Next] build with chunk: true
2024-08-01T20:03:37.544419211Z ▲ Attention: Next.js now collects completely anonymous telemetry regarding usage.
2024-08-01T20:03:37.544598807Z ▲ This information is used to shape Next.js' roadmap and prioritize features.
2024-08-01T20:03:37.5447437Z ▲ 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:
2024-08-01T20:03:37.544887851Z ▲ https://nextjs.org/telemetry
2024-08-01T20:03:37.645796396Z ▲ ▲ Next.js 14.1.1
2024-08-01T20:03:37.646463377Z ▲ - Experiments (use at your own risk):
2024-08-01T20:03:37.646490087Z ▲ · forceSwcTransforms
2024-08-01T20:03:37.705197442Z ▲ Creating an optimized production build ...
2024-08-01T20:03:41.216388754Z ▲ ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
2024-08-01T20:03:41.216604551Z ▲ Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
2024-08-01T20:02:29.120301954Z Cloning repository...
2024-08-01T20:02:29.931073541Z From https://github.com/zc360/ChatGPT-Next-Web
2024-08-01T20:02:29.931438284Z * branch b3219f5 -> FETCH_HEAD
2024-08-01T20:02:29.931450627Z
2024-08-01T20:02:29.999531221Z HEAD is now at b3219f5 Merge pull request #5157 from ConnectAI-E/feature/tencent
2024-08-01T20:02:29.999753086Z
2024-08-01T20:02:30.084008173Z
2024-08-01T20:02:30.084466713Z Using v2 root directory strategy
2024-08-01T20:02:30.108489077Z Success: Finished cloning repository files
2024-08-01T20:02:31.818399543Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-08-01T20:02:31.818887774Z
2024-08-01T20:02:31.917720635Z No wrangler.toml file found. Continuing.
2024-08-01T20:02:32.104017783Z Detected the following tools from environment: [email protected], [email protected]
2024-08-01T20:02:32.104056353Z Installing nodejs 20.1.0
2024-08-01T20:02:33.338007558Z Trying to update node-build... ok
2024-08-01T20:02:33.438841358Z To follow progress, use 'tail -f /tmp/node-build.20240801200233.493.log' or pass --verbose
2024-08-01T20:02:33.560528802Z Downloading node-v20.1.0-linux-x64.tar.gz...
2024-08-01T20:02:33.685984774Z -> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
2024-08-01T20:02:35.25203897Z Installing node-v20.1.0-linux-x64...
2024-08-01T20:02:35.634124901Z Installed node-v20.1.0-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/20.1.0
2024-08-01T20:02:35.634505565Z
2024-08-01T20:02:37.097390866Z Preparing [email protected] for immediate activation...
2024-08-01T20:02:37.789707856Z Installing project dependencies: yarn --pure-lockfile --no-progress --emoji false
2024-08-01T20:02:38.310193729Z yarn install v1.22.19
2024-08-01T20:02:38.374195868Z [1/4] Resolving packages...
2024-08-01T20:02:38.582800398Z [2/4] Fetching packages...
2024-08-01T20:03:11.039043727Z [3/4] Linking dependencies...
2024-08-01T20:03:15.678738435Z [4/4] Building fresh packages...
2024-08-01T20:03:15.899417049Z $ husky install
2024-08-01T20:03:15.978013325Z husky - Git hooks installed
2024-08-01T20:03:15.984720582Z Done in 37.68s.
2024-08-01T20:03:16.025869992Z Executing user command: npx @cloudflare/next-on-pages --experimental-minify
2024-08-01T20:03:17.576608043Z npm WARN exec The following package was not found and will be installed: @cloudflare/[email protected]
2024-08-01T20:03:23.060908001Z npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2024-08-01T20:03:23.081126894Z npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2024-08-01T20:03:23.502657374Z npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-08-01T20:03:23.62772375Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.714227295Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.793709957Z npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:23.89284272Z npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-01T20:03:24.102642279Z npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-08-01T20:03:24.251351919Z npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-08-01T20:03:24.393909994Z npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
2024-08-01T20:03:28.058556559Z ⚡️ @cloudflare/next-on-pages CLI v.1.13.1
2024-08-01T20:03:28.059975413Z
2024-08-01T20:03:28.060528751Z ⚡️ Warning: the --experimental-minify|-e flag is deprecated and doesn't produce any effect, the
2024-08-01T20:03:28.060553349Z ⚡️ (previously named) experimental minification is now enabled by default.
2024-08-01T20:03:28.06065238Z ⚡️
2024-08-01T20:03:28.060967919Z ⚡️ Note: if you're using the --experimental-minify|-e flag in your build command please remove it
2024-08-01T20:03:28.060985092Z ⚡️ as it will be removed in a future version of the package (causing your command to fail).
2024-08-01T20:03:28.061149373Z
2024-08-01T20:03:28.570571999Z ⚡️ Detected Package Manager: npm (9.6.4)
2024-08-01T20:03:28.570771345Z
2024-08-01T20:03:28.570916342Z ⚡️ The project is set up for yarn but it is currently being run via npm this might lead to build errors, please be sure to use the same package manager your project uses when running @cloudflare/next-on-pages
2024-08-01T20:03:28.571061925Z
2024-08-01T20:03:28.571177804Z ⚡️ Preparing project...
2024-08-01T20:03:28.573960281Z ⚡️ Project is ready
2024-08-01T20:03:28.574235275Z ⚡️ Building project...
2024-08-01T20:03:29.935508311Z ▲ npm WARN exec
2024-08-01T20:03:29.935620814Z ▲ The following package was not found and will be installed: [email protected]
2024-08-01T20:03:33.227837508Z ▲ npm
2024-08-01T20:03:33.22868732Z ▲ WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-08-01T20:03:33.246333576Z ▲ npm WARN
2024-08-01T20:03:33.246598343Z ▲ deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.292312384Z ▲ npm
2024-08-01T20:03:33.29265297Z ▲ WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-01T20:03:33.309891528Z ▲ npm
2024-08-01T20:03:33.310455333Z ▲ WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.320690464Z ▲ npm WARN
2024-08-01T20:03:33.321153084Z ▲ deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-08-01T20:03:33.362912738Z ▲ npm WARN deprecated
2024-08-01T20:03:33.363217746Z ▲ [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
2024-08-01T20:03:33.386066274Z ▲ npm WARN deprecated [email protected]: This package is no longer supported.
2024-08-01T20:03:33.405330549Z ▲ npm WARN deprecated
2024-08-01T20:03:33.405547193Z ▲ [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-08-01T20:03:34.521105862Z ▲ Vercel CLI 35.2.2
2024-08-01T20:03:34.826734899Z ▲ Installing dependencies...
2024-08-01T20:03:35.078268484Z ▲ yarn install v1.22.19
2024-08-01T20:03:35.141681064Z ▲ [1/4] Resolving packages...
2024-08-01T20:03:35.340082363Z ▲ success Already up-to-date.
2024-08-01T20:03:35.350444556Z ▲ $ husky install
2024-08-01T20:03:35.435681453Z ▲ husky - Git hooks installed
2024-08-01T20:03:35.442593332Z ▲ Done in 0.37s.
2024-08-01T20:03:35.464341637Z ▲ Detected Next.js version: 14.1.1
2024-08-01T20:03:35.46641462Z ▲ Running "yarn run build"
2024-08-01T20:03:35.70298656Z ▲ yarn run v1.22.19
2024-08-01T20:03:35.728726805Z ▲ $ yarn mask && cross-env BUILD_MODE=standalone next build
2024-08-01T20:03:35.949015845Z ▲ $ npx tsx app/masks/build.ts
2024-08-01T20:03:37.528191865Z ▲ [Next] build mode standalone
2024-08-01T20:03:37.528657451Z ▲ [Next] build with chunk: true
2024-08-01T20:03:37.544419211Z ▲ Attention: Next.js now collects completely anonymous telemetry regarding usage.
2024-08-01T20:03:37.544598807Z ▲ This information is used to shape Next.js' roadmap and prioritize features.
2024-08-01T20:03:37.5447437Z ▲ 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:
2024-08-01T20:03:37.544887851Z ▲ https://nextjs.org/telemetry
2024-08-01T20:03:37.645796396Z ▲ ▲ Next.js 14.1.1
2024-08-01T20:03:37.646463377Z ▲ - Experiments (use at your own risk):
2024-08-01T20:03:37.646490087Z ▲ · forceSwcTransforms
2024-08-01T20:03:37.705197442Z ▲ Creating an optimized production build ...
2024-08-01T20:03:41.216388754Z ▲ ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
2024-08-01T20:03:41.216604551Z ▲ Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
2024-08-01T20:05:07.479953283Z ▲ ✓ Compiled successfully
2024-08-01T20:05:07.48114921Z ▲ Linting and checking validity of types ...
2024-08-01T20:05:11.674012574Z ▲ ./app/components/chat.tsx
2024-08-01T20:05:11.674643554Z ▲ 509:6 Warning: React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when any prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect. react-hooks/exhaustive-deps
2024-08-01T20:05:11.674993235Z ▲ 1489:23 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
2024-08-01T20:05:11.675506601Z ▲ 1506:29 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
2024-08-01T20:05:11.675557816Z ▲
2024-08-01T20:05:11.675640474Z ▲ ./app/components/sd/sd.tsx
2024-08-01T20:05:11.675829775Z ▲ 104:6 Warning: React Hook useEffect has a missing dependency: 'sdStore.draw'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
2024-08-01T20:05:11.675849075Z ▲ 161:25 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
2024-08-01T20:05:11.675945019Z ▲
2024-08-01T20:05:11.676047774Z ▲ info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
2024-08-01T20:05:13.586042598Z ▲ Collecting page data ...
2024-08-01T20:05:15.24928016Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.250005062Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.251316736Z ▲ ⚠ Using edge runtime on a page currently disables static generation for that page
2024-08-01T20:05:15.253189357Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.255149302Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.259353545Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.31180987Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.319953775Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.350361178Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.430217155Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.441279879Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.447297024Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.532487825Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.532821323Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:15.542905391Z ▲ [Server Config] using 1 of 1 api key - sk-xxxxx
2024-08-01T20:05:23.499106817Z ▲ Generating static pages (0/5) ...
2024-08-01T20:05:23.760265591Z ▲ [Server Config] using 1 of 1 api key - sk-xxxxx
2024-08-01T20:05:23.760308619Z ▲
Generating static pages (1/5)
2024-08-01T20:05:23.760344853Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:23.760362929Z ▲ [Server Config] using 1 of 1 api key - sk-xxxx
2024-08-01T20:05:24.022195417Z ▲ Generating static pages (2/5)
2024-08-01T20:05:24.078110427Z ▲ Generating static pages (3/5)
2024-08-01T20:05:24.350764575Z ▲ ✓ Generating static pages (5/5)
2024-08-01T20:05:24.800453843Z ▲ Finalizing page optimization ...
2024-08-01T20:05:24.800690952Z ▲ Collecting build traces ...
2024-08-01T20:05:43.976441033Z ▲
2024-08-01T20:05:43.979422535Z ▲ Route (app) Size First Load JS
2024-08-01T20:05:43.979448515Z ▲ ┌ ○ / 444 kB 530 kB
2024-08-01T20:05:43.979922193Z ▲ ├ ○ /_not-found 894 B 86.8 kB
2024-08-01T20:05:43.980170791Z ▲ ├ ℇ /api/alibaba/[...path] 0 B 0 B
2024-08-01T20:05:43.980191377Z ▲ ├ ℇ /api/anthropic/[...path] 0 B 0 B
2024-08-01T20:05:43.980368305Z ▲ ├ ℇ /api/artifacts 0 B 0 B
2024-08-01T20:05:43.980385063Z ▲ ├ ℇ /api/azure/[...path] 0 B 0 B
2024-08-01T20:05:43.980876023Z ▲ ├ ℇ /api/baidu/[...path] 0 B 0 B
2024-08-01T20:05:43.981231633Z ▲ ├ ℇ /api/bytedance/[...path] 0 B 0 B
2024-08-01T20:05:43.981246962Z ▲ ├ ℇ /api/config 0 B 0 B
2024-08-01T20:05:43.981499668Z ▲ ├ ℇ /api/google/[...path] 0 B 0 B
2024-08-01T20:05:43.981815386Z ▲ ├ ℇ /api/moonshot/[...path] 0 B 0 B
2024-08-01T20:05:43.981828336Z ▲ ├ ℇ /api/openai/[...path] 0 B 0 B
2024-08-01T20:05:43.982057653Z ▲ ├ ℇ /api/stability/[...path] 0 B 0 B
2024-08-01T20:05:43.982230289Z ▲ ├ λ /api/tencent 0 B 0 B
2024-08-01T20:05:43.982339573Z ▲ ├ ℇ /api/upstash/[action]/[...key] 0 B 0 B
2024-08-01T20:05:43.982497735Z ▲ └ ℇ /api/webdav/[...path] 0 B 0 B
2024-08-01T20:05:43.982512783Z ▲ + First Load JS shared by all 86 kB
2024-08-01T20:05:43.982673273Z ▲ ├ chunks/8069-86a6f6a0586c0b28.js 29.2 kB
2024-08-01T20:05:43.982814488Z ▲ ├ chunks/fd9d1056-fdfda9478f9bc4a3.js 53.4 kB
2024-08-01T20:05:43.982962079Z ▲ └ other shared chunks (total) 3.36 kB
2024-08-01T20:05:43.983116827Z ▲ ○ (Static) prerendered as static content
2024-08-01T20:05:43.983282759Z ▲ λ (Dynamic) server-rendered on demand using Node.js
2024-08-01T20:05:43.983433866Z ▲ ℇ (Edge Runtime) server-rendered on demand using the Edge Runtime
2024-08-01T20:05:44.128568552Z ▲ Done in 128.43s.
2024-08-01T20:05:45.26660544Z ▲ Traced Next.js server files in: 1.079s
2024-08-01T20:05:45.537994902Z ▲ Created all serverless functions in: 270.852ms
2024-08-01T20:05:46.036516633Z ▲ Collected static files (public/, static/, .next/static): 8.233ms
2024-08-01T20:05:46.201897685Z ▲ Build Completed in .vercel/output [2m]
2024-08-01T20:05:46.29112832Z ⚡️ Completed npx vercel build.
2024-08-01T20:05:47.91023572Z
2024-08-01T20:05:47.910859205Z ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
2024-08-01T20:05:47.910879903Z ⚡️
2024-08-01T20:05:47.911215988Z ⚡️ The following routes were not configured to run with the Edge Runtime:
2024-08-01T20:05:47.911437483Z ⚡️ - /api/tencent
2024-08-01T20:05:47.911567836Z ⚡️
2024-08-01T20:05:47.91169071Z ⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
2024-08-01T20:05:47.911897197Z ⚡️ export const runtime = 'edge';
2024-08-01T20:05:47.911997358Z ⚡️
2024-08-01T20:05:47.912181307Z ⚡️ You can read more about the Edge Runtime on the Next.js documentation:
2024-08-01T20:05:47.912196885Z ⚡️ https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes
2024-08-01T20:05:47.91239701Z
2024-08-01T20:05:47.938503366Z Failed: Error while executing user command. Exited with error code: 1
2024-08-01T20:05:47.947884346Z Failed: build command exited with code: 1
2024-08-01T20:05:48.909558Z Failed: error occurred while running build command

@zc360 zc360 added the bug Something isn't working label Aug 1, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] Deployment to cloudflare failed according to the documentation

@lloydzhou
Copy link
Contributor

@zc360

  1. 非常感谢你提issue,这边已经收到,并着手开始修复
  2. 下次提交issue的时候,仔细检查一下,不要把key提交上来了

@Issues-translate-bot
Copy link

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


@zc360

  1. Thank you very much for raising the issue. We have received it and are starting to fix it.
  2. Next time you submit an issue, check carefully and don’t submit the key.

@Issues-translate-bot
Copy link

lloydzhou added a commit to ConnectAI-E/ChatGPT-Next-Web that referenced this issue Aug 2, 2024
@GenshinMinecraft
Copy link

同样遇到 同一地方

@Issues-translate-bot
Copy link

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


Encountered the same place

@GenshinMinecraft
Copy link

该 Bug 貌似已经解决,但引来了新 Bug #5178

@Issues-translate-bot
Copy link

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


This bug seems to have been resolved, but a new bug #5178 has been introduced

@lloydzhou
Copy link
Contributor

已经修复,会在这一个版本发布

@Issues-translate-bot
Copy link

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


It has been fixed and will be released in this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants