Skip to content

Commit 555c01d

Browse files
committed
fix(docs): build docs as fully static output for Cloudflare Pages
nuxt build with the cloudflare_pages preset emits a _worker.js (advanced mode), and Cloudflare Pages ignores _redirects/_headers whenever a _worker.js is present — so the legacy 301 redirects returned 404 on the deployed site. Switch the build script to nuxt generate, which produces a purely static dist/ with no worker, making _redirects/_headers authoritative (matching the previous netlify-static behavior).
1 parent c3fccc6 commit 555c01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs-v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"private": true,
77
"type": "module",
88
"scripts": {
9-
"build": "nuxt build",
9+
"build": "nuxt generate",
1010
"dev": "nuxt dev",
1111
"generate": "nuxt generate",
1212
"preview": "nuxt preview",

0 commit comments

Comments
 (0)