Commit ff3aa3ad authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by Tim Neutkens

ignore _document.js on windows and expand symlinks when using next export (#3637)

* next export will expand symlinks now

* Make sure next export doesn't includes _document.js in windows
parent e401e2cf
...@@ -43,7 +43,8 @@ export default async function (dir, options, configuration) { ...@@ -43,7 +43,8 @@ export default async function (dir, options, configuration) {
log(' copying "static" directory') log(' copying "static" directory')
await cp( await cp(
join(dir, 'static'), join(dir, 'static'),
join(outDir, 'static') join(outDir, 'static'),
{ expand: true }
) )
} }
...@@ -138,7 +139,7 @@ function copyPages (nextDir, outDir, buildId) { ...@@ -138,7 +139,7 @@ function copyPages (nextDir, outDir, buildId) {
// We should not expose this page to the client side since // We should not expose this page to the client side since
// it has no use in the client side. // it has no use in the client side.
if (relativeFilePath === '/_document.js') { if (relativeFilePath === `${sep}_document.js`) {
next() next()
return return
} }
......
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