pnpm run generate - not creating all pages in conten t

So can see pages with pnpm run dev ..,. pages are defined in content directory but do not see the pages when after running pnpm run generate and npx serve .output/public HTTP 25/04/2024 21:03:30 ::1 GET /api/_content/query/zw5gkipEzh.1714075339911.json?_params=%7B%22first%22:true,%22where%22:%5B%7B%22_path%22:%22%2Fgetting-started%2Froadmap%22%7D%5D,%22sort%22:%5B%7B%22_file%22:1,%22$numeric%22:true%7D%5D%7D HTTP 25/04/2024 21:03:30 ::1 Returned 404 in 1 ms HTTP 25/04/2024 21:03:30 ::1 GET /api/search.json
2 Replies
Dave Herring
Dave Herring3mo ago
(backend-py3.12) dave@Davids-MacBook-Air-2 frontend % node .output/server/index.mjs This works fine .. as does pnpm run dev using the nuxt ui pro doc template - if that is relevant Found issue - if using dunamic pages [...slug].vue then you need to have a link to the pages in content from index.vue - then the crawler will fins all the pages and make these. The pages in content appear to link to each other - so linking to any one of them from index.vue I beleive will work. Without this link they are not being created as static content
dwol
dwol3mo ago
if you dont have a link to each page you want generated you can explicitly define the prerender routes you want in the nitro config, nitro: { prerender: { routes: [] } },
nitro: {
prerender: {
routes: []
}
},
nitro: {
prerender: {
routes: []
}
},
Want results from more Discord servers?
Add your server
More Posts