We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3
// ~/pages/[...slug].vue <script setup lang="ts"> const route = useRoute() const { data } = await useAsyncData(route.path, () => queryCollection('docs').path(route.path).first()) </script> <template> <ContentRenderer v-if="data" :value="data" /> </template>
Content
Add some pages in content folder.
content
For example:
Note
Using nuxt build all pages works as expected.
nuxt build
Getting 404 error on preview after generate nuxt generate. Works only page root /, for example if you have blog page there will be throwing error.
nuxt generate
/
blog
No response
The text was updated successfully, but these errors were encountered:
Same here. Maybe someone can elaborate on how to make static builds work?
In dev mode everything works fine. I tried both ssr: true/false. Pages are empty after build.
ssr: true/false
Sorry, something went wrong.
No branches or pull requests
Environment
Version
v3
Reproduction
Content
Add some pages in
content
folder.For example:
Description
Note
Using
nuxt build
all pages works as expected.Getting 404 error on preview after generate
nuxt generate
. Works only page root/
, for example if you haveblog
page there will be throwing error.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: