Skip to content

Commit 9adacac

Browse files
committed
chore: disable extra caching for payload routes
1 parent b219252 commit 9adacac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nuxt.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,9 @@ export default defineNuxtConfig({
134134
},
135135
// pages
136136
'/package/:name': getISRConfig(60),
137-
'/package/:name/_payload.json': getISRConfig(60),
138137
'/package/:name/v/:version': getISRConfig(60),
139-
'/package/:name/v/:version/_payload.json': getISRConfig(60),
140138
'/package/:org/:name': getISRConfig(60),
141-
'/package/:org/:name/_payload.json': getISRConfig(60),
142139
'/package/:org/:name/v/:version': getISRConfig(60),
143-
'/package/:org/:name/v/:version/_payload.json': getISRConfig(60),
144140
// infinite cache (versioned - doesn't change)
145141
'/package-code/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
146142
'/package-docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },

0 commit comments

Comments
 (0)