File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ export default defineNuxtModule({
1616 nitro . hooks . hook ( 'compiled' , ( ) => {
1717 const spaTemplate = readFileSync ( nitro . options . output . publicDir + '/200.html' , 'utf-8' )
1818 for ( const path of [
19+ 'package' ,
20+ 'package/[name]' ,
21+ 'package/[name]/v' ,
22+ 'package/[name]/v/[version]' ,
1923 'package/[org]' ,
2024 'package/[org]/[name]' ,
2125 'package/[org]/[name]/v' ,
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ export default defineNuxtConfig({
108108 } ,
109109 } ,
110110 // pages
111+ '/package/:name' : { isr : getISRConfig ( 60 , true ) } ,
112+ '/package/:name/v/:version' : { isr : getISRConfig ( 60 , true ) } ,
111113 '/package/:org/:name' : { isr : getISRConfig ( 60 , true ) } ,
112114 '/package/:org/:name/v/:version' : { isr : getISRConfig ( 60 , true ) } ,
113115 // infinite cache (versioned - doesn't change)
You can’t perform that action at this time.
0 commit comments