Skip to content

Commit 9a795dd

Browse files
committed
test(og-image): add compare snapshot + disable origin restriction
- Add baseline snapshot for new compare test case - Disable restrictRuntimeImagesToOrigin (defaults to [] when strict=true); HMAC signing is already sufficient and origin pinning breaks e2e runs that hit localhost. All other OG snapshots regenerated identically, so takumi rc.17 + nuxt-og-image 6.3.4 don't visibly change rendering.
1 parent bd59666 commit 9a795dd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ export default defineNuxtConfig({
300300
// Strict mode only activates when a secret is present (CI builds without one).
301301
strict: !!process.env.NUXT_IMAGE_PROXY_SECRET,
302302
secret: process.env.NUXT_IMAGE_PROXY_SECRET,
303+
// HMAC signing is sufficient; origin pinning blocks localhost e2e runs
304+
// and adds no meaningful security on top of signed URLs.
305+
restrictRuntimeImagesToOrigin: false,
303306
},
304307
},
305308

16.2 KB
Loading

0 commit comments

Comments
 (0)