File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ export async function startProdServer(
193193 await context . hooks . onAfterStartProdServer . call ( {
194194 port,
195195 routes,
196+ environments : context . environments ,
196197 } ) ;
197198
198199 const protocol = https ? 'https' : 'http' ;
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export type OnAfterStartDevServerFn = (params: {
7676export type OnAfterStartProdServerFn = ( params : {
7777 port : number ;
7878 routes : Routes ;
79+ environments : Record < string , EnvironmentContext > ;
7980} ) => MaybePromise < void > ;
8081
8182export type OnBeforeCreateCompilerFn < B = 'rspack' > = ( params : {
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ type Routes = Array<{
99}>;
1010
1111function OnAfterStartProdServer(
12- callback : (params : { port: number ; routes: Routes }) => Promise <void > | void ,
12+ callback : (params : {
13+ port: number ;
14+ routes: Routes ;
15+ environments: Record <string , EnvironmentContext >;
16+ }) => Promise <void > | void ,
1317): void ;
1418```
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ type Routes = Array<{
99}>;
1010
1111function OnAfterStartProdServer(
12- callback : (params : { port: number ; routes: Routes }) => Promise <void > | void ,
12+ callback : (params : {
13+ port: number ;
14+ routes: Routes ;
15+ environments: Record <string , EnvironmentContext >;
16+ }) => Promise <void > | void ,
1317): void ;
1418```
You can’t perform that action at this time.
0 commit comments