File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,11 @@ export default defineNuxtConfig({
133133 } ,
134134 } ,
135135 // pages
136- '/package/**' : getISRConfig ( 60 ) ,
136+ '/package/**' : getISRConfig ( 60 , { fallback : 'html' } ) ,
137+ '/package/:name/_payload.json' : getISRConfig ( 60 , { fallback : 'json' } ) ,
138+ '/package/:name/v/:version/_payload.json' : getISRConfig ( 60 , { fallback : 'json' } ) ,
139+ '/package/:org/:name/_payload.json' : getISRConfig ( 60 , { fallback : 'json' } ) ,
140+ '/package/:org/:name/v/:version/_payload.json' : getISRConfig ( 60 , { fallback : 'json' } ) ,
137141 // infinite cache (versioned - doesn't change)
138142 '/package-code/**' : { isr : true , cache : { maxAge : 365 * 24 * 60 * 60 } } ,
139143 '/package-docs/**' : { isr : true , cache : { maxAge : 365 * 24 * 60 * 60 } } ,
You can’t perform that action at this time.
0 commit comments