File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,13 @@ export type WebpackConfigObject = {
43
43
} ;
44
44
45
45
// 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
+ } ;
47
53
48
54
/**
49
55
* Webpack `entry` config
Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ const clientWebpackConfig = {
80
80
target : 'web' ,
81
81
context : '/Users/Maisey/projects/squirrelChasingSimulator' ,
82
82
} ;
83
+
83
84
const baseBuildContext = {
84
85
dev : false ,
85
86
buildId : 'doGsaREgReaT' ,
86
87
dir : '/Users/Maisey/projects/squirrelChasingSimulator' ,
88
+ config : { target : 'server' as const } ,
87
89
} ;
88
90
const serverBuildContext = { isServer : true , ...baseBuildContext } ;
89
91
const clientBuildContext = { isServer : false , ...baseBuildContext } ;
You can’t perform that action at this time.
0 commit comments