Different behaviour of build on server vs preview (localhost)
Hello, I'm facing problem with different behaviour of same build. On localhost (preview) its working as expected. Servers document response is fully rendered before hitting the client. But on production server only part of the web (looks like only layout - nav and footer, is rendered but page - index.vue which use async data is missing) is comming as response and rest is handeled on clinet which creates a lot of Comulative Layout Shift and wierd visuals.
Do you know what is the issue here? Or atleast point me in the right direction what to look for?
2 Replies
Could you share some code of that index.vue?
I already solve it. Maybe "solve" is a strong word. I remove all node_packages and reinstall them again, it started to work. No idea what was the problem, versions of Vue nor Nuxt did not changed. And as I mentioned before, the same production build was ok on preview but behive wierd on server. Wierd error.