File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const { resolve } = require('path')
5
5
const moize = require ( 'moize' )
6
6
7
7
// Load next.config.js
8
- const getNextConfig = async function ( failBuild = defaultFailBuild ) {
8
+ const getNextConfig = async function ( publishPath , failBuild = defaultFailBuild ) {
9
9
// We cannot load `next` at the top-level because we validate whether the
10
10
// site is using `next` inside `onPreBuild`.
11
11
const { PHASE_PRODUCTION_BUILD } = require ( 'next/constants' )
@@ -18,7 +18,7 @@ const getNextConfig = async function (failBuild = defaultFailBuild) {
18
18
}
19
19
}
20
20
21
- const moizedGetNextConfig = moize ( getNextConfig , { maxSize : 1e3 , isPromise : true } )
21
+ const moizedGetNextConfig = moize ( getNextConfig ( publishPath ) , { maxSize : 1e3 , isPromise : true } )
22
22
23
23
const defaultFailBuild = function ( message , { error } ) {
24
24
throw new Error ( `${ message } \n${ error . stack } ` )
You can’t perform that action at this time.
0 commit comments