File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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')
55const moize = require ( 'moize' )
66
77// Load next.config.js
8- const getNextConfig = async function ( failBuild = defaultFailBuild ) {
8+ const getNextConfig = async function ( publishPath , failBuild = defaultFailBuild ) {
99 // We cannot load `next` at the top-level because we validate whether the
1010 // site is using `next` inside `onPreBuild`.
1111 const { PHASE_PRODUCTION_BUILD } = require ( 'next/constants' )
@@ -18,7 +18,7 @@ const getNextConfig = async function (failBuild = defaultFailBuild) {
1818 }
1919}
2020
21- const moizedGetNextConfig = moize ( getNextConfig , { maxSize : 1e3 , isPromise : true } )
21+ const moizedGetNextConfig = moize ( getNextConfig ( publishPath ) , { maxSize : 1e3 , isPromise : true } )
2222
2323const defaultFailBuild = function ( message , { error } ) {
2424 throw new Error ( `${ message } \n${ error . stack } ` )
You can’t perform that action at this time.
0 commit comments