Skip to content

Commit 2015e8b

Browse files
authored
fix!: throw error on invalid config with strictSeo enabled (#3718)
1 parent fd3414a commit 2015e8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/runtime/routing/head.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ function createHeadContext(
1818
const canonicalQueries = (typeof config.seo === 'object' && config.seo?.canonicalQueries) || []
1919

2020
if (!baseUrl) {
21+
if (__I18N_STRICT_SEO__) {
22+
throw new Error('I18n `baseUrl` is required to generate valid SEO tag links.')
23+
}
2124
console.warn('I18n `baseUrl` is required to generate valid SEO tag links.')
2225
}
2326

0 commit comments

Comments
 (0)