Skip to content

Commit 8a53564

Browse files
Adebesin-Cellclaude
andcommitted
fix: pass query params to OG image ISR function on Vercel
Vercel's ISR `passQuery` defaults to `false`, which strips all query parameters before passing the request to the serverless function. This caused the compare page OG image to always render the empty state because the function never received `packages=zustand,redux` or the `_query` parameter that nuxt-og-image relies on. Closes #2431 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 57687cc commit 8a53564

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nuxt.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ export default defineNuxtConfig({
128128
'/api/registry/package-meta/**': { isr: 300 },
129129
'/:pkg/.well-known/skills/**': { isr: 3600 },
130130
'/:scope/:pkg/.well-known/skills/**': { isr: 3600 },
131-
'/__og-image__/**': getISRConfig(3600),
131+
'/__og-image__/**': {
132+
isr: {
133+
expiration: 3600,
134+
passQuery: true,
135+
},
136+
},
132137
'/_avatar/**': { isr: 3600, proxy: 'https://www.gravatar.com/avatar/**' },
133138
'/opensearch.xml': { isr: true },
134139
'/oauth-client-metadata.json': { prerender: true },

0 commit comments

Comments
 (0)