content icon indicating copy to clipboard operation
content copied to clipboard

Hosting on Netlify results in Nuxt Content data not being retrieved after hard refresh

Open Syourt opened this issue 7 months ago • 0 comments

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

  1. Have a look at my minimal reproduction: https://netlify-nuxt-issue.netlify.app/
  2. Navigate to /issue using the internal link on the homepage
  3. Verify the content is visible
  4. Refresh the page
  5. 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!

Syourt avatar Jun 16 '25 12:06 Syourt