mahnouel
mahnouel
NNuxt
Created by mahnouel on 6/9/2023 in #❓・help
Nuxt 3 SSR Output still refetches content, even though `fetchAsyncData` is used
5 replies
NNuxt
Created by mahnouel on 6/9/2023 in #❓・help
Nuxt 3 SSR Output still refetches content, even though `fetchAsyncData` is used
I think I found the reason. Nitro tried to be helpful by changing it's behaviour when deployed to Vercel. I've added following route rules, and now it seems to do full SSG:
export default defineNuxtConfig({
...
routeRules: {
'/': { prerender: true },
'/**': { prerender: true },
},
})
export default defineNuxtConfig({
...
routeRules: {
'/': { prerender: true },
'/**': { prerender: true },
},
})
What a headache ^^
5 replies
NNuxt
Created by mahnouel on 6/9/2023 in #❓・help
Nuxt 3 SSR Output still refetches content, even though `fetchAsyncData` is used
I found out I'm trying to do SSG not SSR
5 replies