Hey devs! I have hosted my nuxt 4 blog in cloudflare pages.
The Blog seems to work pretty fine...
But I see when I click on a post it uses SPA navigation and loads the post page fine; but when I directly visit the page or refresh, it fetches the static HTML document but shows 404 page after a split second working fine.
I hosted the same project on Netlify it also has the same issue. Is it a hosting issue or nuxt? Locally, previously it had the same issue but currently it's fine on local.
I used the build config as follows:
npm run build
npm run build
and
dist
dist
. Also tried
npm run generate
npm run generate
. In nuxt config, I made the project full SSG by setting