diff --git a/nuxt.config.ts b/nuxt.config.ts index 7f8226725a..8f170ce474 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -142,6 +142,13 @@ export default defineNuxtConfig({ allowQuery: ['host'], }, }, + '/api/repo/**': { + isr: { + expiration: 60 * 60 /* one hour */, + passQuery: true, + allowQuery: ['host'], + }, + }, '/api/registry/docs/**': { isr: { expiration: false, allowQuery: [] }, cache: { maxAge: 365 * 24 * 60 * 60 },