Skip to content

Commit

Permalink
fix: nuxt content check at module setup (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 authored Dec 5, 2024
1 parent 16bed48 commit 00c4f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default defineNuxtModule<ModuleOptions>({
}

const nitroPreset = resolveNitroPreset(nuxt.options.nitro)
let usingNuxtContent = hasNuxtModule('@nuxt/content') && config.disableNuxtContentIntegration !== false
let usingNuxtContent = hasNuxtModule('@nuxt/content') && config.disableNuxtContentIntegration !== true
if (usingNuxtContent) {
if (await hasNuxtModuleCompatibility('@nuxt/content', '^3')) {
logger.warn('Nuxt Robots does not work with Nuxt Content v3 yet, the integration will be disabled. Learn more at: https://nuxtseo.com/docs/robots/guides/content')
Expand Down

0 comments on commit 00c4f8a

Please sign in to comment.