#My SSG webapp is suddenyl SSR - Why?

9 messages · Page 1 of 1 (latest)

dusk ruin
#

I've developed a small webapp using Nuxt 3, have been updating for a year. When I went from 3.1 to 3.6.5 the SSG was extremely fast, like 100x faster. Awesome.
The other day I checked the site (canicompostit.com) and it was weird, that it took a bit of time to load the pages. And right there in the Network tab I could see the xhr requests to the backend. But this did not happen before! I just generated the site and pushed it to a gh-pages branch on github from where Netlify deployed the site. I've updated it dozens of times in the past year without a hitch.

But now, no matter what I do, it's SSR.

I'm pretty sure I'm missing something trivial, but not sure what that is. I tried to deploy it on Vercel, but it's the same, so I guess it's not a hosting issue. I can only think of something happened between 3.6.5 and 3.8.1 - some default config maybe? nuxt.config looks normal.

I even tried to manually copy and paste the dist folder onto netlify - still SSR. but how??? I've been banging my head agains the wall the whole day and I just can't find it.

Any pointers would be highly appreciated. Thank you!

honest badge
#

If you're using SSG then you have SSR enabled, if there's a network request happening, it's likely because it can't fetch the payload from a pregenerated payload.json and falling back to a server request

#

Looking at the site, i can see the payload is generated, it's not hydrating it for some reason

#

you'd need to share your code

dusk ruin
# honest badge If you're using SSG then you have SSR enabled, if there's a network request happ...

thank you, really appreciate the help. source code is here: https://github.com/korbal/compost-v3 why I don't understand is this: I haven't changed anything for months, so I guess this is a nuxt change that I'm not aware. I tried to grill chatgpt, but it is clueless. 🙂 Thank you, really appreciate it!

GitHub

Contribute to korbal/compost-v3 development by creating an account on GitHub.

honest badge
#

hm I see, interesting

#

I think there is some designs improvements that can be made, I'll think on them

#

(not sure why it would break, sorry)

dusk ruin