Skip to content

Commit 72665b2

Browse files
committed
fix(og-image): bump to 6.3.6, remove workarounds
6.3.6 fixes: - Hash propagation: buildOgImageUrl result.hash is now written to opts._hash so the prerender plugin stores it in prerenderOptionsCache - Orphaned hash URLs are gracefully skipped (prerender:generate hook clears error) instead of failing the build - Signed dynamic URLs when strict+secret are set (from 6.3.5) Removed workarounds that are no longer needed: - nitro.prerender.ignore for /_og/ paths - @nuxtjs/html-validator patch for /_og/ route skip
1 parent a5327ce commit 72665b2

File tree

5 files changed

+8
-31
lines changed

5 files changed

+8
-31
lines changed

nuxt.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@ export default defineNuxtConfig({
257257
replace: {
258258
'import.meta.test': isTest,
259259
},
260-
prerender: {
261-
// OG images are runtime-only (ISR). Without a signing secret (CI),
262-
// URLs use hash mode which requires the source page to be prerendered
263-
// first — skip to avoid orphaned hash 404s.
264-
ignore: ['/_og/'],
265-
},
266260
},
267261

268262
fonts: {

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.5",
94+
"nuxt-og-image": "6.3.6",
9595
"ofetch": "1.5.1",
9696
"ohash": "2.0.11",
9797
"perfect-debounce": "2.1.0",

patches/@nuxtjs__html-validator.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ packageExtensions:
4545
patchedDependencies:
4646
'@jsr/deno__doc@0.189.1': patches/@jsr__deno__doc@0.189.1.patch
4747
'@nuxt/test-utils': patches/@nuxt__test-utils.patch
48-
'@nuxtjs/html-validator': patches/@nuxtjs__html-validator.patch
4948

5049
savePrefix: ''
5150

0 commit comments

Comments
 (0)