Skip to content

Commit 0cf3733

Browse files
committed
fix: update route rules for auth
1 parent b966dbc commit 0cf3733

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export default defineNuxtConfig({
9494
'/opensearch.xml': { isr: true },
9595
'/**': { isr: 60 },
9696
'/package/**': { isr: 60 },
97+
// never cache
9798
'/search': { isr: false, cache: false },
99+
'/api/auth/**': { isr: false, cache: false },
98100
// infinite cache (versioned - doesn't change)
99101
'/code/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
100102
'/api/registry/docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
@@ -103,6 +105,7 @@ export default defineNuxtConfig({
103105
// static pages
104106
'/about': { prerender: true },
105107
'/settings': { prerender: true },
108+
'/oauth-client-metadata.json': { prerender: true },
106109
// proxy for insights
107110
'/_v/script.js': { proxy: 'https://npmx.dev/_vercel/insights/script.js' },
108111
'/_v/view': { proxy: 'https://npmx.dev/_vercel/insights/view' },

0 commit comments

Comments
 (0)