Closed
Description
Bug report
Describe the bug
Running next export
on a build server installation touches files in the .next
directory. This is especially causing trouble if the server package has been installed globally, since rights are missing in this case, e.g.
next export
> using build directory: /usr/local/share/.config/yarn/global/node_modules/myserver/.next
Error: EACCES: permission denied, open '/usr/local/share/.config/yarn/global/node_modules/myserver/.next/export-detail.json'
at Object.openSync (fs.js:440:3)
at writeFileSync (fs.js:1265:35)
at _default (/usr/local/share/.config/yarn/global/node_modules/next/dist/export/index.js:9:379) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/usr/local/share/.config/yarn/global/node_modules/myserver/.next/export-detail.json'
}
To Reproduce
next build && next export
will reveal that .next/export-detail.json
has been written.
Expected behavior
Don't write on export, just read from .next
.
Metadata
Metadata
Assignees
Labels
No labels