Skip to content

Nuxt content hot reload break when integrating with nuxt sitemap #498

@hlassiege

Description

@hlassiege

When I use the nuxt content integration, the hot reload doesn't work anymore on the content itself.

Hi,

When I enable the integration with nuxt content, I can't modify and view the content change without restarting the server.

I had to comment this section in content.config.ts

import { defineCollection, defineContentConfig, z } from '@nuxt/content'

export default defineContentConfig({
  collections: {
    // content: defineCollection(
    //   asSitemapCollection({
    //     type: 'page',
    //     source: {
    //       include: '**'
    //     }
    //   })
    // ),
    docs: defineCollection({
....
})

I also tried with source: '**/*.md'

Versions :

 "@nuxt/content": "^3.8.2",
"@nuxtjs/robots": "^5.5.6",
    "@nuxtjs/sitemap": "^7.4.7",

Modules

  modules: [
    'nuxt-auth-utils',
    '@nuxt/eslint',
    '@nuxt/ui',
    '@vueuse/nuxt', '@nuxt/image', '@nuxtjs/robots',
    '@nuxtjs/sitemap', 'nuxt-security', 'nuxt-monaco-editor',
    '@vueuse/motion/nuxt', '@nuxt/content'], devtools: { enabled: true },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions