Commit 555c01d
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments