Skip to content

Commit a5327ce

Browse files
committed
fix(og-image): bump 6.3.5 + skip OG prerender
nuxt-og-image 6.3.5 fixes signed URL generation when strict+secret are set. But CI has no secret, so URLs stay in hash mode and orphaned hashes fail. Adding nitro.prerender.ignore for /_og/ ensures OG images are never prerendered regardless of environment — they're runtime-only (ISR).
1 parent b4f2fff commit a5327ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ 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+
},
260266
},
261267

262268
fonts: {

0 commit comments

Comments
 (0)