Home

Issue: 2111

Problem with asyncData on page refresh and nuxt generate?

[issue link]

I just switched from an API, to having my json files in the static folder. Works fine, except for when i do a page refresh. I then get a 404 and axios createError. I’m also getting these errors when trying to generate the site

  async asyncData () {
    let { data } = await axios.get('/data/projects.json')
    return { content: data }
  }

Any idea what might be wrong?

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