Replies: 8 comments 8 replies
-
This is expected behaviour. You should generally only be running SSR in your production environment, and you can just add the SSR build and process restart to your build/CICD process. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So what is the expected workflow here? I want to use root hydration in my app, but when the SSR is not enabled during dev, I keep getting an error about the DOM mismatch. Do people enable root hydration only on production? |
Beta Was this translation helpful? Give feedback.
-
Our team stuck at the exact same location but we managed to find a workaround. On production env the flow is like in the docs. We built a separated container which spins up the inertia server and our laravel app communicate with it. On dev however we have 2 separate containers. The first one is running the build in watch mode with |
Beta Was this translation helpful? Give feedback.
-
@alex-uxify What is meant by "the whole folder" here? |
Beta Was this translation helpful? Give feedback.
-
I think the greatest achievement of having SSR during dev would be improving the experience of using markup assertion in feature tests. I know Dusk can handle this, but honestly, setting it up correctly is a pain, and I miss being able to simply |
Beta Was this translation helpful? Give feedback.
-
This is pretty bad, only this inability to develop with SSR can create tons of problems, I use Nuxt apps mostly, and there are tons of issues arise with SSR like errors, hydrations mismatches, etc, and most of this can be seen and fixed during development. Not being able to develop with SSR can be a deal breaker and pain in the ass. And talking that this an expected behavior is not acceptable. |
Beta Was this translation helpful? Give feedback.
-
This is a must have, I'm trying to create a plugin to increase performance of my apps, everything is configured and works, but I need to have the compiled HTML response in a middleware so I can save this response as a HTML file, there is no way to do it? Edit: I need to be able to test this in development |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've followed the setup instructions for enabling SSR, and so far everything works fine. But I've noticed that once I do any change in my frontend code, I need to stop the SSR process, rebuild it, and start it again. Otherwise the SSR'd content will be always out of date (with whatever I had in my frontend code at the time I ran the build command).
Is this intended/expected behavior? Or do you think I have something wrong with my setup?
So far I've worked around this problem by automating the rebuild and restart with nodemon, but not sure if there's a better or recommended way to handle this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions