File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,13 @@ export type WebpackConfigObject = {
4343} ;
4444
4545// Information about the current build environment
46- export type BuildContext = { dev : boolean ; isServer : boolean ; buildId : string ; dir : string } ;
46+ export type BuildContext = {
47+ dev : boolean ;
48+ isServer : boolean ;
49+ buildId : string ;
50+ dir : string ;
51+ config : Partial < NextConfigObject > ;
52+ } ;
4753
4854/**
4955 * Webpack `entry` config
Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ const clientWebpackConfig = {
8080 target : 'web' ,
8181 context : '/Users/Maisey/projects/squirrelChasingSimulator' ,
8282} ;
83+
8384const baseBuildContext = {
8485 dev : false ,
8586 buildId : 'doGsaREgReaT' ,
8687 dir : '/Users/Maisey/projects/squirrelChasingSimulator' ,
88+ config : { target : 'server' as const } ,
8789} ;
8890const serverBuildContext = { isServer : true , ...baseBuildContext } ;
8991const clientBuildContext = { isServer : false , ...baseBuildContext } ;
You can’t perform that action at this time.
0 commit comments