提交 d3c710b3 编写于 作者: C Cédric Marcone 提交者: Tim Neutkens

Fixes 'next export' when exportPathMap function depends on runtime config (#4339)

上级 9de2c408
......@@ -81,9 +81,6 @@ export default async function (dir, options, configuration) {
}
}
const exportPathMap = await nextConfig.exportPathMap(defaultPathMap)
const exportPaths = Object.keys(exportPathMap)
// Start the rendering process
const renderOpts = {
dir,
......@@ -116,6 +113,9 @@ export default async function (dir, options, configuration) {
nextExport: true
}
const exportPathMap = await nextConfig.exportPathMap(defaultPathMap)
const exportPaths = Object.keys(exportPathMap)
for (const path of exportPaths) {
log(`> exporting path: ${path}`)
if (!path.startsWith('/')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册