File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ export async function generateFunctionFiles(nitro: Nitro) {
9090 const _getRouteRules = ( path : string ) =>
9191 defu ( { } , ..._routeRulesMatcher . matchAll ( path ) . reverse ( ) ) as NitroRouteRules ;
9292 for ( const route of o11Routes ) {
93+ const routeRules = _getRouteRules ( route . src ) ;
94+ // TODO: address issue with 404s with /index.func + ISR
95+ if ( routeRules . isr ) {
96+ continue ;
97+ }
9398 const funcPrefix = resolve (
9499 nitro . options . output . serverDir ,
95100 ".." ,
@@ -101,14 +106,6 @@ export async function generateFunctionFiles(nitro: Nitro) {
101106 funcPrefix + ".func" ,
102107 "junction"
103108 ) ;
104- const routeRules = _getRouteRules ( route . src ) ;
105- if ( routeRules . isr ) {
106- await writePrerenderConfig (
107- funcPrefix + ".prerender-config.json" ,
108- routeRules . isr ,
109- nitro . options . vercel ?. config ?. bypassToken
110- ) ;
111- }
112109 }
113110}
114111
You can’t perform that action at this time.
0 commit comments