Skip to content

Commit 470489a

Browse files
committed
chore: load next config depends on root publish build directory
1 parent 2f564b1 commit 470489a

File tree

4 files changed

+3689
-38485
lines changed

4 files changed

+3689
-38485
lines changed

helpers/getNextConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getNextConfig = async function (failBuild = defaultFailBuild) {
1212
const loadConfig = require('next/dist/next-server/server/config').default
1313

1414
try {
15-
return await loadConfig(PHASE_PRODUCTION_BUILD, resolve('.'))
15+
return await loadConfig(PHASE_PRODUCTION_BUILD, resolve(publishPath))
1616
} catch (error) {
1717
return failBuild('Error loading your next.config.js.', { error })
1818
}

0 commit comments

Comments
 (0)