Explication
Hello, I got a problem with nuxt/content on my project when i run npm run build && npm run start.
You have to know, in development mode there is no problem.
When i run production mode, i can't access to my files used with nuxt/content, you can see the error which appear in my console.

EDIT
I find what is the problem, this error come from SPA (if i choose SSR, it's working). Someone have an idea to solve it ?
Step to reproduce the problem :
- Create a project :
npx create-nuxt-app content-project && cd content-projectYou have my configuration below.
- Go into the project then install nuxt/content :
npm install @nuxt/content - Go into nuxt.config.js and add to "modules: []" this : '@nuxt/content' then add "content: {}"

- Into tsconfig.json, add this lines at "types" : "@nuxt/content",

- At the root of the project, add a dir named "content", into this directory create a file named "test.md" and add this lines into the file :
---
title: Introduction
description: Apprenez comment utiliser @nuxt/content.
---
## Liens
<nuxt-link to="/articles">Nuxt Link vers le Blog</nuxt-link>
<a href="/articles">Lien Html vers le Blog</a>
[Lien Markdown vers le Blog](/fr/articles)
<a href="https://nuxtjs.org">Lien Html externe</a>
[Lien Markdown externe](https://nuxtjs.org)
- Into pages directory, create a new file named "testcontent.vue" and add this code into :
<template>
<article>
<h1>{{ page.title }}</h1>
<nuxt-content :document="page" />
</article>
</template>
<script>
export default {
async asyncData({ $content }) {
const page = await $content('test').fetch()
return {
page,
}
},
}
</script>
- Now, you can save and try this in dev mode
npm run dev, try this link "http://localhost:3000/testcontent", this should work. - Then try this in production mode
npm run build && npm run start. I don't understand why that doesn't work.