From c497ae9a504fcea6ec2f56508b239a7b778a20b5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 30 Nov 2026 14:17:11 +0000 Subject: [PATCH] fix: pass the host query to repo api routes --- nuxt.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index f5cab61bb7..15e1aee5bb 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: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, '/api/registry/file/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, '/api/registry/provenance/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },