mahnouel
mahnouel
NNuxt
Created by mahnouel on 5/20/2024 in #❓・help
SSG deployment on vercel is not prerendering / generating html files
Vercel seems to do some kind of magic, which results in a difference between local builds and the build output visible on vercel. We're not sure what exactly happens, but: at vercel [...slug].vue work when visited from the root, but not when visited directly. It seems this might be, because at vercel there is only the _payload.json in the <slug>/ directory, but no index.html any help or pointer would be greatly appreciated, thanks 🙂
1 replies
NNuxt
Created by mahnouel on 6/9/2023 in #❓・help
Nuxt 3 SSR Output still refetches content, even though `fetchAsyncData` is used
I've tried
const { data } = await useAsyncData(
'static',
async () =>
await getItems({
collection: 'staticpages',
})
);
const { data } = await useAsyncData(
'static',
async () =>
await getItems({
collection: 'staticpages',
})
);
(uses nuxt-directus) and
const { data: staticpages } = await useFetch(<url>/items/staticpages`);
const { data: staticpages } = await useFetch(<url>/items/staticpages`);
I build via nuxt generate But when I open the generated files on a static server, I see requests to the endpoints when I reload the page / navigate to it. I just can't find out why. I've also tried to use the full-static package, and a lot of other things - but I can't get it to work...
5 replies