nuxt generate cann't find pages with [...path].vue while nuxt dev is working well #2770
Unanswered
xixiskynet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to build a static site. But when I use "nuxt generate", it won't work with the docs file . But it works well when I using dev.
this is the docs file directory.
Also to mention, if it helps. The blog works well. And the difference between them is blog using [path].vue, docs using [...path].vue.
here is the log, when the prerender goes to crawl docs page, it will encounter 404。
Prerendering 6 initial routes with crawler nitro 17:21:52
├─ /sitemap/style.xsl (28ms) nitro 17:21:52
├─ /404.html (697ms) nitro 17:21:52
├─ /200.html (690ms) nitro 17:21:52
├─ /robots.txt (1293ms) nitro 17:21:54
├─ / (2159ms) nitro 17:21:54
├─ /_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (162ms) (skipped) nitro 17:21:54
├─ /api/_content/cache.1725527962828.json (2270ms) nitro 17:21:54
├─ /_payload.json (8ms) nitro 17:21:54
├─ /ipx//images/feature-image-dark.svg (115ms) nitro 17:21:55
├─ /ipx//images/feature-image.svg (152ms) nitro 17:21:55
├─ /about (613ms) nitro 17:21:55
├─ /about/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (204ms) (skipped) nitro 17:21:55
├─ /blog (1048ms) nitro 17:21:55
├─ /pricing (908ms) nitro 17:21:56
├─ /blog/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (235ms) (skipped) nitro 17:21:56
├─ /about/_payload.json (203ms) nitro 17:21:56
├─ /docs (1776ms) nitro 17:21:56
│ ├── Error: [404] Not Found
│ └── Linked from /
│ └── Linked from /about
│ └── Linked from /blog
│ └── Linked from /pricing
├─ /pricing/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (305ms) (skipped) nitro 17:21:56
├─ /legal/terms (1324ms) nitro 17:21:56
├─ /legal/privacy (1361ms) nitro 17:21:57
├─ /legal/terms/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (12ms) (skipped) nitro 17:21:57
├─ /blog/_payload.json (26ms) nitro 17:21:57
├─ /legal/privacy/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (10ms) (skipped) nitro 17:21:58
├─ /changelog (3142ms) nitro 17:21:58
├─ /pricing/_payload.json (1063ms) nitro 17:21:58
├─ /legal/terms/_payload.json (55ms) nitro 17:21:58
├─ /changelog/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (534ms) (skipped) nitro 17:21:58
├─ /api/_content/query/IuBPykAEkI.1725527962828.json (2047ms) nitro 17:21:58
├─ /_ipx/w_96/images/blog/author2.jpg (1799ms) nitro 17:21:58
├─ /_ipx/s_2x2/images/blog/cover.png (1852ms) nitro 17:21:58
├─ /_ipx/w_192/images/blog/author2.jpg (1780ms) nitro 17:21:58
├─ /_ipx/s_1x1/images/blog/cover.png (2008ms) nitro 17:21:58
├─ /_ipx/s_384x216/images/blog/cover.png (2001ms) nitro 17:21:58
├─ /_ipx/s_768x432/images/blog/cover.png (2010ms) nitro 17:21:58
├─ /_ipx/w_96/images/blog/author.jpg (1832ms) nitro 17:21:58
├─ /legal/privacy/_payload.json (539ms) nitro 17:21:59
├─ /_ipx/w_192/images/blog/author.jpg (1958ms) nitro 17:21:59
├─ /changelog/_payload.json (68ms) nitro 17:21:59
├─ /api/_content/query/jTymhN0D2J.1725527962828.json (1226ms) nitro 17:21:59
├─ /blog/second-post (3175ms) nitro 17:21:59
├─ /api/_content/query/PFmlaG8V5o.1725527962828.json (1083ms) nitro 17:21:59
├─ /blog/first-post (3200ms) nitro 17:21:59
├─ /blog/second-post/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (63ms) (skipped) nitro 17:21:59
├─ /blog/first-post/_payload.json?957c20f0-bf9c-475d-9432-ef688fbf5482 (25ms) (skipped) nitro 17:21:59
├─ /blog/second-post/_payload.json (11ms) nitro 17:21:59
├─ /blog/first-post/_payload.json (13ms) nitro 17:21:59
├─ /api/_content/query/3Z9DurSoKL.1725527962828.json (411ms) nitro 17:21:59
├─ /api/_content/query/GuOIcm0uHz.1725527962828.json (351ms) nitro 17:21:59
├─ /_ipx/s_2400x1350/images/blog/cover.png (326ms) nitro 17:21:59
├─ /_ipx/s_1200x675/images/blog/cover.png (370ms)
Beta Was this translation helpful? Give feedback.
All reactions