Skip to content

Commit f3ebfd6

Browse files
committed
fix(html-validator): disable long-title rule for OG image HTML
1 parent 72665b2 commit f3ebfd6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nuxt.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ export default defineNuxtConfig({
288288
htmlValidator: {
289289
enabled: !isCI || (provider !== 'vercel' && !!process.env.VALIDATE_HTML),
290290
options: {
291-
rules: { 'meta-refresh': 'off' },
291+
rules: {
292+
'meta-refresh': 'off',
293+
// OG image HTML inherits full page titles that routinely exceed 70 chars
294+
'long-title': 'off',
295+
},
292296
},
293297
failOnError: true,
294298
},

0 commit comments

Comments
 (0)