Nuxt Pre-Render error
I have been getting prerender errors that I can’t solve. The site builds perfectly locally but on Cloudflare pages, at the end of a long build, it gives 500 errors for things that work, and then at the 10th 500 error, it quits.
I wonder if I should open a support ticket but I don’t know if it’s a nitro issue or not. I posted on the Nuxt server also but since this builds perfectly in local, I don’t know if it’s truly a Nuxt issue.
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json (10ms)
2024… [log] [nitro]
2024… Errors prerendering:
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (156ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (159ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (152ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (73ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (90ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (87ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (92ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (94ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (89ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (88ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (85ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (102ms)
2024… │ └── Error: [500]
2024… [log] [nitro]
2024… [error] Exiting due to prerender errors.
2024… at prerender (node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
2024… at async node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:3540:7
2024… at async build (node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:5333:5)
2024… at async Object.run (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:94:5)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
2024… at async runMain$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
2024…
2024… [error] Exiting due to prerender errors.
2024… Failed: Error while executing user command. Exited with error code: 1
2024… Failed: build command exited with code: 1
2024… Failed: error occurred while running build command
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json (10ms)
2024… [log] [nitro]
2024… Errors prerendering:
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (156ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (159ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (152ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (73ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (90ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (87ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (92ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (94ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (89ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (88ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (85ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (102ms)
2024… │ └── Error: [500]
2024… [log] [nitro]
2024… [error] Exiting due to prerender errors.
2024… at prerender (node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
2024… at async node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:3540:7
2024… at async build (node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:5333:5)
2024… at async Object.run (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:94:5)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
2024… at async runMain$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
2024…
2024… [error] Exiting due to prerender errors.
2024… Failed: Error while executing user command. Exited with error code: 1
2024… Failed: build command exited with code: 1
2024… Failed: error occurred while running build command
0 Replies