Skip to content

Commit b828bce

Browse files
Adebesin-Cellclaude
andcommitted
fix: add allowQuery whitelist for OG image ISR cache
Restrict cache variation to only the query params the OG handler needs, preventing cache fragmentation from arbitrary query params. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8a53564 commit b828bce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default defineNuxtConfig({
132132
isr: {
133133
expiration: 3600,
134134
passQuery: true,
135+
allowQuery: ['packages', '_query'],
135136
},
136137
},
137138
'/_avatar/**': { isr: 3600, proxy: 'https://www.gravatar.com/avatar/**' },

0 commit comments

Comments
 (0)