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 {
29
29
"/" + relative ( join ( baseDir , buildDir ) , filePath ) ,
30
30
] )
31
31
) ,
32
- {
33
- omitStack : true ,
34
- }
32
+ { omitStack : true }
35
33
) ;
36
34
}
37
35
38
- async serve (
36
+ async serve < T = void > (
39
37
request : Request ,
40
38
{
41
39
Shell,
42
40
preloadScript,
43
41
bootstrapModules,
42
+ context,
44
43
} : {
45
44
Shell : React . ComponentType < { children : React . ReactElement } > ;
46
45
preloadScript ?: string ;
47
46
bootstrapModules ?: string [ ] ;
47
+ context ?: T ;
48
48
}
49
49
) {
50
50
const { pathname, search } = new URL ( request . url ) ;
@@ -66,6 +66,7 @@ export class StaticRouters {
66
66
params : serverSide . params ,
67
67
req : request ,
68
68
query : serverSide . query ,
69
+ context,
69
70
} ) ;
70
71
const stringified = NJSON . stringify ( result , { omitStack : true } ) ;
71
72
if ( request . headers . get ( "Accept" ) === "application/vnd.server-side-props" ) {
You can’t perform that action at this time.
0 commit comments