Commit 29a745f3 authored by Tim Neutkens's avatar Tim Neutkens

Compile to the same directory as currently

parent 084919f3
...@@ -247,7 +247,7 @@ async function clientBundler({Bundler, dir, buildId, config}) { ...@@ -247,7 +247,7 @@ async function clientBundler({Bundler, dir, buildId, config}) {
} }
const dynamicBundles = getDynamicBundlesForAsset(entryBundle.entryAsset, entryBundle.name) const dynamicBundles = getDynamicBundlesForAsset(entryBundle.entryAsset, entryBundle.name)
const manifestName = entryBundle.name.replace(options.outDir, path.join(dir, '.next', 'server')).replace(/\.js$/, '-loadable.json') const manifestName = entryBundle.name.replace(options.outDir, path.join(dir, '.next', 'server', 'static')).replace(/\.js$/, '-loadable.json')
writePromises.push(writeFile(manifestName, JSON.stringify(dynamicBundles), 'utf8')) writePromises.push(writeFile(manifestName, JSON.stringify(dynamicBundles), 'utf8'))
} }
await Promise.all(writePromises) await Promise.all(writePromises)
...@@ -258,7 +258,7 @@ async function serverBundler({Bundler, dir, buildId, config}) { ...@@ -258,7 +258,7 @@ async function serverBundler({Bundler, dir, buildId, config}) {
const entryFiles = serverPages const entryFiles = serverPages
const options = { const options = {
outDir: path.join(dir, '.next', 'server'), outDir: path.join(dir, '.next', 'server', 'static'),
watch: false, watch: false,
sourceMaps: false, sourceMaps: false,
minify: true, minify: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment