Home

Issue: 1500

fetch () is pre-populating static files on nuxt generate

[issue link]

Hi there,

I ran nuxt generate, and pages with the fetch () method are building with the fetched content pre-populated in the static html file. If you are using a CMS, this is problematic because direct hits to the page will load the original content when it was built.

For now, I had to replace the fetch () method with the created () lifecycle hook.

I’m using 1.0.0-rc3, so not sure if this has been fixed. If this is intended behavior, it’s problematic, unless I’m missing something.

This question is available on Nuxt.js community (#c1335)