[Nuxt 3.16] useFetch data empty on SSR
Let's take a basic api fetch:
This works totally fine in dev mode: the data value is populated upon navigating to the page and also on page reload. For some reason, this doesn't work anymore in production - even when I build the project locally. After reload, you can actually see the posts data render for a sec, but then they disappear again and the page is empty. The console.log on the client is also empty. So it seems like the data isn't really passed from the server to the client.
This used to work before and it also works in a new project. So there has to be something within my codebase preventing the fetch method from working correctly. I can't share the whole code here, but maybe you could give me a hint where to look?
This works totally fine in dev mode: the data value is populated upon navigating to the page and also on page reload. For some reason, this doesn't work anymore in production - even when I build the project locally. After reload, you can actually see the posts data render for a sec, but then they disappear again and the page is empty. The console.log on the client is also empty. So it seems like the data isn't really passed from the server to the client.
This used to work before and it also works in a new project. So there has to be something within my codebase preventing the fetch method from working correctly. I can't share the whole code here, but maybe you could give me a hint where to look?
