N
Nuxt5mo ago
biro

Prerender skips one route only.

Hi everyone! Big nuxt fan here! I've developed a nuxt application with #Prismic.io (for the content and #Shopify as ecommerce backend, deployed on #Netlify. Everything was working fine until few days ago, where (during the building) all my routes under /collections were not prerendered (5-6 file expected), but /products is correctly prerendered( 70 soming pages prerendered). i've tried to change the order in the config, to use routeRules, nitro etc with no luck i can share my nuxt config if needed. But generally i'd like to find out what's the best way to deploy my app. (the content changes often) I made a bunch of "experiments" (ssg, ssr, prerendered, with isr, with swr) but i think i'm missing some points :🤓 Thanks in advance for the help! ❤️
5 Replies
manniL
manniL5mo ago
Do you properly link to the /collection routes so the crawler can pick them up?
biro
biro5mo ago
yes! everything was working fine...suddently it broke just that route. i also noticed that running npm run build with prerender some routes displays in the cli a 500 error and a 404 error on those collections page. now i've patched running everything fully ssr disabling the prerender, but i think that might affect SEO... notable mention. running on dev, it works with no errors or warnings :/
Flo
Flo5mo ago
If you run it in ssr on production, do you see those 500/404 errors on the collections pages?
biro
biro5mo ago
there are two way to reach the page. one is through a direct link https://my-site.com/collections/mycollections and this one fails. the second one is navigating from the top menu => collections => mycollection, an this one works. on the dist folder i was able too see all the generated products page, and only the index.html inside collections folder :/
Flo
Flo5mo ago
I'd say, the failure on direct access keeps your pages from being rendered. Eliminate it and you should be good.
Want results from more Discord servers?
Add your server