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?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1871">#c1871</a>)</em></sub></div>