Angius
Angius
Explore posts from servers
NNuxt
Created by Angius on 7/8/2024 in #❓・help
Error 500 during prerendering, only on Cloudflare Pages
nuxt generate generates the site perfectly well on my machine. The same command used to build the site on Cloudflare Pages throws this at me:
18:27:09.253 [log] [nitro]
18:27:09.254 Errors prerendering:
18:27:09.254 [log] [nitro] ├─ /about (365ms)
18:27:09.254 │ ├── Error: [500]
18:27:09.254 │ └── Linked from /
18:27:09.254 [log] [nitro]
18:27:09.255 [error] Exiting due to prerender errors.
18:27:09.255 at prerender (node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
18:27:09.255 at async node_modules/nuxt/dist/index.mjs:3540:7
18:27:09.255 at async build (node_modules/nuxt/dist/index.mjs:5333:5)
18:27:09.255 at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:94:5)
18:27:09.256 at async Object.run (node_modules/nuxi/dist/chunks/generate.mjs:55:5)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
18:27:09.256 at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
18:27:09.256
18:27:09.256 [error] Exiting due to prerender errors.
18:27:09.305 error: script "generate" exited with code 1
18:27:09.310 Failed: Error while executing user command. Exited with error code: 1
18:27:09.322 Failed: build command exited with code: 1
18:27:11.109 Failed: error occurred while running build command
18:27:09.253 [log] [nitro]
18:27:09.254 Errors prerendering:
18:27:09.254 [log] [nitro] ├─ /about (365ms)
18:27:09.254 │ ├── Error: [500]
18:27:09.254 │ └── Linked from /
18:27:09.254 [log] [nitro]
18:27:09.255 [error] Exiting due to prerender errors.
18:27:09.255 at prerender (node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
18:27:09.255 at async node_modules/nuxt/dist/index.mjs:3540:7
18:27:09.255 at async build (node_modules/nuxt/dist/index.mjs:5333:5)
18:27:09.255 at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:94:5)
18:27:09.256 at async Object.run (node_modules/nuxi/dist/chunks/generate.mjs:55:5)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
18:27:09.256 at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
18:27:09.256
18:27:09.256 [error] Exiting due to prerender errors.
18:27:09.305 error: script "generate" exited with code 1
18:27:09.310 Failed: Error while executing user command. Exited with error code: 1
18:27:09.322 Failed: build command exited with code: 1
18:27:11.109 Failed: error occurred while running build command
1 replies