Skip to content

Commit a2e9724

Browse files
committed
chore: staged changes
1 parent 470489a commit a2e9724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/getNextConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { resolve } = require('path')
55
const 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

2323
const defaultFailBuild = function (message, { error }) {
2424
throw new Error(`${message}\n${error.stack}`)

0 commit comments

Comments
 (0)