File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ module.exports = {
5757 const nextConfig = loadConfig ( PHASE_PRODUCTION_BUILD , path . resolve ( '.' ) )
5858 const isValidTarget = acceptableTargets . includes ( nextConfig . target )
5959 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+ )
6163 }
6264 } else {
6365 // 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()', () => {
161161 utils,
162162 constants : { FUNCTIONS_SRC : 'out_functions' } ,
163163 } ) ,
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+ )
165167 } ,
166168 )
167169} )
You can’t perform that action at this time.
0 commit comments