Philippe Serhal
Philippe Serhal
NNuxt
Created by seancdavis on 2/26/2025 in #❓・help
Hydration and caching issues on universal rendering page
It's pretty well documented here: https://nuxt.com/docs/guide/concepts/nuxt-lifecycle. AFAIK the setup script runs entirely on both (in universal rendering mode). There are specific components/composables/utils that only run on the server (e.g. https://nuxt.com/docs/api/utils/set-response-status) or on the browser (https://nuxt.com/docs/api/components/client-only) and there's the https://nuxt.com/docs/api/utils/call-once util to wrap an arbitrary piece of code to run on the server only.
23 replies
NNuxt
Created by seancdavis on 2/26/2025 in #❓・help
Hydration and caching issues on universal rendering page
I'm not familiar with nuxt rendering internals, but I'm suspicious of this:
setInterval(refresh, 1000);
setInterval(refresh, 1000);
Wouldn't this run on the server as well? Maybe nuxt SSR somehow keeps track of background work and this trips it up?
23 replies
NNuxt
Created by seancdavis on 2/26/2025 in #❓・help
Hydration and caching issues on universal rendering page
The generated _headers file will only contain statically configured headers (i.e. from routeRules), not anything dynamically set in runtime code
23 replies
NNuxt
Created by seancdavis on 2/26/2025 in #❓・help
Hydration and caching issues on universal rendering page
I noticed that it doesn't pick up the redirects mentioned in the page file (src/pages/polls/[id].vue)
🤔 was redirects here a typo for headers?
23 replies
NNuxt
Created by seancdavis on 2/26/2025 in #❓・help
Hydration and caching issues on universal rendering page
FYI it uses the netlify preset automatically when it detects that it's running via the Netlify CLI
23 replies
NNuxt
Created by Cetus 🔛🔝 on 11/5/2024 in #❓・help
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
I don't think that syntax is quite right, but in any case you don't need to hack it that way since a patch version of nuxt was released this morning. Just upgrade to the latest nuxt and you should be good!
10 replies
NNuxt
Created by Cetus 🔛🔝 on 11/5/2024 in #❓・help
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
Update: see https://github.com/nitrojs/nitro/issues/2846. This will be fixed asap in a nuxt patch (maybe even earlier if nitro cuts a patch with https://github.com/nitrojs/nitro/pull/2851 since that also fixes it for some cases).
10 replies
NNuxt
Created by Cetus 🔛🔝 on 11/5/2024 in #❓・help
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
Hey @Cetus 🔛🔝 I'm seeing the same thing! Thanks for sharing. The Nitro folks and I are looking into it now.
10 replies