File tree 4 files changed +10080
-5
lines changed
4 files changed +10080
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,13 @@ const verifyBuildTarget = async ({ failBuild }) => {
39
39
// Creating a config file, because otherwise Next won't reload the config and pick up the new target
40
40
41
41
if ( ! ( await findUp ( 'next.config.js' ) ) ) {
42
- await writeFile ( path . resolve ( 'next.config.js' ) , `module.exports = {}` )
42
+ await writeFile (
43
+ path . resolve ( 'next.config.js' ) ,
44
+ `module.exports = {
45
+ // Supported targets are "serverless" and "experimental-serverless-trace"
46
+ target: "serverless"
47
+ }` ,
48
+ )
43
49
}
44
50
// Force the new config to be generated
45
51
await getNextConfig ( failBuild )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const copyUnstableIncludedDirs = require('./helpers/copyUnstableIncludedDirs')
5
5
const doesNotNeedPlugin = require ( './helpers/doesNotNeedPlugin' )
6
6
const getNextConfig = require ( './helpers/getNextConfig' )
7
7
const validateNextUsage = require ( './helpers/validateNextUsage' )
8
- const nextOnNetlify = require ( './src' )
9
8
const verifyBuildTarget = require ( './helpers/verifyBuildTarget' )
9
+ const nextOnNetlify = require ( './src' )
10
10
11
11
// * Helpful Plugin Context *
12
12
// - Between the prebuild and build steps, the project's build command is run
You can’t perform that action at this time.
0 commit comments