1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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
This commit is contained in:
Luis Fernando Alvarez D 2018-01-31 02:38:43 -05:00 committed by Tim Neutkens
parent e401e2cf5f
commit ff3aa3ad01

View file

@ -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
}