Is there any tips on how to have a continuous build of Nuxt 3 SSR mode?
I found that every time we deploy a new build, on first load of the page it always showing error but after a page refresh it backs to normal.
Hi welcome to the forums! Thanks so much for reaching out.
Have you tried that changing the build command in the package.json
file from nuxt generate
to nuxt build
this resolved a similar issue in the past.
If not can you please supply your site details?
I’m on Nuxt 3.
The build command is nuxi build
So, every time ther eis a new build, the page must be refreshed twice to get the latest build loaded.
The first refresh will throw an HTTP 500 which I believe because of cache, the previous build file already gone.
Then second refresh then will get the new file and page will be loaded correctly.