Danny Vogel
Missing environmental variable causing infinite errors
@kapa.ai I use runtime config and all variables are set to empty strings. The values are loaded through the .env file in local development and via the dockerfile when deployed. I won't be setting fallback/default values.
I suppose a plugin that checks all envs are loaded could work.
9 replies
Issue: Initial page load flash before hydration
Took me way too long to find but what finally seems to have resolved it is disabling all third party scripts (cookie yes, recaptcha, google analytics and helpshift). Now to figure out which one exactly caused the issue but for now im super relieved to have found it!
16 replies
Issue: Initial page load flash before hydration
yeah, understandable that its hard to pinpoint without a reproduction. Also its mostly evidently only when deployed too. At most we could whitelist your ip for access to the deployed dev environment hehe.
16 replies
Issue: Initial page load flash before hydration
not really, this is a project for work currently only on our dev server and in a private repo. Not sure if trying to create a dummy version would create the same issue. Any recommendations? I can answer as much as you need. Even some general ideas for troubleshooting would be greatly appreciated. Currently im just deleting/disabling various features to see if I can at least locate the issue.
We have another, much smaller project that also uses Nuxt with SSR and the issue doesn't occur there. Nor does it happen on my personal projects.
16 replies
Issue: Initial page load flash before hydration
Yes, globally set SSR to false in nuxtConfig and also disabled prerender routes as per @manniL / TheAlexLichter's video in order to fully convert to SPA. This fixed the issue with the flash but is not ideal as we want the SSR benefits.
16 replies