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) {
log(' copying "static" directory')
await cp(
join(dir, 'static'),
join(outDir, 'static')
join(outDir, 'static'),
{ expand: true }
)
}
......@@ -138,7 +139,7 @@ function copyPages (nextDir, outDir, buildId) {
// We should not expose this page to the client side since
// it has no use in the client side.
if (relativeFilePath === '/_document.js') {
if (relativeFilePath === `${sep}_document.js`) {
next()
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