Skip to content

Commit bdedac2

Browse files
committed
fix(og-image): bump to 6.3.7, clean config
6.3.7 root-fixes the hash propagation bug: options._hash is now set on the original payload (not just the local copy), so the prerender plugin stores hashes and OG image prerender succeeds without orphans. Also fixes orphan cleanup (route.contents cleared for downstream hooks) so module ordering (og-image before html-validator) prevents long-title errors without needing the rule disabled. No workarounds remain: no nitro.prerender.ignore, no html-validator patch, no long-title: off.
1 parent f3ebfd6 commit bdedac2

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

nuxt.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const isStorybook = process.env.STORYBOOK === 'true' || process.env.VITEST_STORY
77
export default defineNuxtConfig({
88
modules: [
99
'@unocss/nuxt',
10+
'nuxt-og-image',
1011
'@nuxtjs/html-validator',
1112
'@nuxt/scripts',
1213
'@nuxt/a11y',
13-
'nuxt-og-image',
1414
'@nuxt/test-utils',
1515
'@vite-pwa/nuxt',
1616
'@vueuse/nuxt',
@@ -288,11 +288,7 @@ export default defineNuxtConfig({
288288
htmlValidator: {
289289
enabled: !isCI || (provider !== 'vercel' && !!process.env.VALIDATE_HTML),
290290
options: {
291-
rules: {
292-
'meta-refresh': 'off',
293-
// OG image HTML inherits full page titles that routinely exceed 70 chars
294-
'long-title': 'off',
295-
},
291+
rules: { 'meta-refresh': 'off' },
296292
},
297293
failOnError: true,
298294
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"marked": "17.0.4",
9292
"module-replacements": "2.11.0",
9393
"nuxt": "4.3.1",
94-
"nuxt-og-image": "6.3.6",
94+
"nuxt-og-image": "6.3.7",
9595
"ofetch": "1.5.1",
9696
"ohash": "2.0.11",
9797
"perfect-debounce": "2.1.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)