Skip to content

Commit

Permalink
fix: tag priorities for nuxt.config overrides
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
harlan-zw committed Sep 12, 2023
1 parent a497da5 commit 0f3095b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export default defineNuxtConfig({
enabled: true,
},

app: {
head: {
titleTemplate: '%s - Nuxt SEO Kit',
}
},

i18n: {
locales: ['en', 'it']
},
Expand Down
2 changes: 1 addition & 1 deletion module/src/runtime/plugin/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default defineNuxtPlugin({

const minimalPriority: UseHeadOptions = {
// give nuxt.config values higher priority
tagPriority: 15,
tagPriority: 150,
}

useHead({
Expand Down

0 comments on commit 0f3095b

Please sign in to comment.