content
content copied to clipboard
Hosting on Netlify results in Nuxt Content data not being retrieved after hard refresh
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 3.17.5
- CLI Version: 3.25.1
- Nitro Version: 2.11.12
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, modules, nitro
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
Version
3.6.0
Reproduction
https://github.com/Syourt/nuxt-netlify-issue
Description
I'm using Nuxt Content v3.6 and hosting on Netlify using the nitro preset netlify-edge.
The issue i'm having is with Nuxt Content retrieving the content data after refreshing a page. When navigating through the website using the internal linking structure with NuxtLink everything seems to work fine. But when I refresh the page containing information from Nuxt Content the content remains empty.
Reproduction steps
- Have a look at my minimal reproduction: https://netlify-nuxt-issue.netlify.app/
- Navigate to /issue using the internal link on the homepage
- Verify the content is visible
- Refresh the page
- Verify the content is not loaded
I've tried to search for similar issues but I couldn't find anyone struggling with the same issue. Hope to find some help here, thank you!