#When prerendering why are there still network requests?

1 messages · Page 1 of 1 (latest)

tall eagle
#

I am prerendering a bunch of pages:

nitro: {
    prerender: {
      crawlLinks: true,
      routes: ["/"],
      ignore: ["/tak", "/konfiguration", "/checkout"],
    },
  }

Why are my useFetch calls still running? Shouldn't the site be statically generated?

primal creek
#

because prerendering is not client-side only rendering. A prerender still runs the page like in ssr to render the html.

tall eagle
#

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. @primal creek

granite cloak
#

I'm wondering the same thing. What does static mean in routeRules if useFetch still runs? I'm trying to decrease api calls.

alpine flume
#

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"