I need to build my Next application with output: "export" and distDir: "out/web/". This does work partially, it does build correctly, but the dev files (dev server cache, trace, etc) use this folder too, which messes up my build pipeline. Can I make these paths separate?
This is the contents of out/web/ when a dev server has been running before building:
.well-known
404.html
_next
account.html
account.txt
app-build-manifest.json
auth
build-manifest.json
cache
index.html
index.txt
package.json
react-loadable-manifest.json
server
static
test-images
trace
types
while this is a clean build:
.well-known
404.html
_next
account.html
account.txt
auth
index.html
index.txt
test-images
(I have a custom setup with builds so I need to have a custom distDir set)