File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ module.exports = {
57
57
const nextConfig = loadConfig ( PHASE_PRODUCTION_BUILD , path . resolve ( '.' ) )
58
58
const isValidTarget = acceptableTargets . includes ( nextConfig . target )
59
59
if ( ! isValidTarget ) {
60
- return failBuild ( `next.config.js must be one of: ${ acceptableTargets . join ( ', ' ) } ` )
60
+ return failBuild (
61
+ `Your next.config.js must set the "target" property to one of: ${ acceptableTargets . join ( ', ' ) } ` ,
62
+ )
61
63
}
62
64
} else {
63
65
// Create the next config file with target set to serverless by default
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ describe('preBuild()', () => {
161
161
utils,
162
162
constants : { FUNCTIONS_SRC : 'out_functions' } ,
163
163
} ) ,
164
- ) . rejects . toThrow ( `next.config.js must be one of: serverless, experimental-serverless-trace` )
164
+ ) . rejects . toThrow (
165
+ `Your next.config.js must set the "target" property to one of: serverless, experimental-serverless-trace` ,
166
+ )
165
167
} ,
166
168
)
167
169
} )
You can’t perform that action at this time.
0 commit comments