Closed
Description
Environment
- Operating System: Windows_NT
- Node Version: v22.12.0
- Nuxt Version: 3.15.3
- CLI Version: 3.20.0
- Nitro Version: 2.10.4
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, future, modules, eslint, compatibilityDate
- Runtime Modules: @nuxt/[email protected], [email protected], @nuxt/[email protected], [email protected]
- Build Modules: -
Version
v3
Reproduction
// ~/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.
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 have blog
page there will be throwing error.
Additional context
No response
Logs
Metadata
Metadata
Assignees
Labels
No labels