N
Nuxt2y ago
Mads

When prerendering why are there still network requests?

I am prerendering a bunch of pages:
nitro: {
prerender: {
crawlLinks: true,
routes: ["/"],
ignore: ["/tak", "/konfiguration", "/checkout"],
},
}
nitro: {
prerender: {
crawlLinks: true,
routes: ["/"],
ignore: ["/tak", "/konfiguration", "/checkout"],
},
}
Why are my useFetch calls still running? Shouldn't the site be statically generated?
5 Replies
Julien
Julien2y ago
because prerendering is not client-side only rendering. A prerender still runs the page like in ssr to render the html.
Mads
MadsOP2y ago
I am not looking to have client side rendering. I am looking to have static generated pages. I've tried this as well with same result. @chakraecho
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
manniL
manniL2y ago
If you want to remove API calls, you need to use pre-rendering (nuxi generate) or opt into experimental payload extraction (experimental.payloadExtraction or so) Static Is "like pre-rendering" but "on-demand"
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server