Skip to content

Commit

Permalink
chore: ignore false sitemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 18, 2024
1 parent f59a766 commit 81f08ed
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 @@ -203,7 +203,7 @@ export default defineNuxtModule<ModuleOptions>({
strategy: nuxtI18nConfig.strategy as 'prefix' | 'prefix_except_default' | 'prefix_and_default',
}
}
let canI18nMap = nuxtI18nConfig.strategy !== 'no_prefix'
let canI18nMap = config.sitemaps !== false && nuxtI18nConfig.strategy !== 'no_prefix'
if (typeof config.sitemaps === 'object') {
const isSitemapIndexOnly = typeof config.sitemaps.index !== 'undefined' && Object.keys(config.sitemaps).length === 1
if (!isSitemapIndexOnly)
Expand Down

0 comments on commit 81f08ed

Please sign in to comment.