-
-
Notifications
You must be signed in to change notification settings - Fork 727
Closed
Description
Environment
- Operating System:
Darwin - Node Version:
v16.16.0 - Nuxt Version:
3.0.0-rc.8 - Package Manager:
[email protected] - Builder:
vite - User Config:
ssr,target,modules,content - Runtime Modules:
@nuxt/[email protected] - Build Modules:
-
Reproduction
https://github.com/kjanusz/nuxt3-content2
Describe the bug
I'm trying to build a new project with Nuxt Content 2 and SSG.
According to documentation (https://content.nuxtjs.org/guide/deploy/static-hosting#static-hosting), this is possible (prerendering).
export default defineNuxtConfig({
// static HTML generation (SSG)
ssr: true,
target: "static",
modules: ['@nuxt/content'],
content: {
// https://content.nuxtjs.org/api/configuration
},
})After the run generate and preview, there is an endless loop (ContentList) on the overview page "/blog".
npm run generate
npm run previewThere are no problems at dev Build.
npm run devMy index.vue
<template>
<main>
<ContentList path="/blog" v-slot="{ list }">
<div v-for="post in list" :key="post._path">
<h2>{{ post.title }}</h2>
<p>{{ post.description }}</p>
<nuxt-link :to="post._path">{{ post.title }}</nuxt-link>
<pre>{{ path }}</pre>
</div>
</ContentList>
</main>
</template>
<script setup lang="ts">
const { path } = useRoute();
</script>Is my SSG configuration in nuxt.config.ts wrong? Or do I make a mistake in this regard (generate/preview)? Or bug?
Additional context
Use of Edge Chanel for Content 2 has not brought any changes.
Logs
No response
Metadata
Metadata
Assignees
Labels
No labels