File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,22 @@ export class StaticRouters {
2929 "/" + relative ( join ( baseDir , buildDir ) , filePath ) ,
3030 ] )
3131 ) ,
32- {
33- omitStack : true ,
34- }
32+ { omitStack : true }
3533 ) ;
3634 }
3735
38- async serve (
36+ async serve < T = void > (
3937 request : Request ,
4038 {
4139 Shell,
4240 preloadScript,
4341 bootstrapModules,
42+ context,
4443 } : {
4544 Shell : React . ComponentType < { children : React . ReactElement } > ;
4645 preloadScript ?: string ;
4746 bootstrapModules ?: string [ ] ;
47+ context ?: T ;
4848 }
4949 ) {
5050 const { pathname, search } = new URL ( request . url ) ;
@@ -66,6 +66,7 @@ export class StaticRouters {
6666 params : serverSide . params ,
6767 req : request ,
6868 query : serverSide . query ,
69+ context,
6970 } ) ;
7071 const stringified = NJSON . stringify ( result , { omitStack : true } ) ;
7172 if ( request . headers . get ( "Accept" ) === "application/vnd.server-side-props" ) {
You can’t perform that action at this time.
0 commit comments