mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Root cause: build-self-host-migration-script runs tsdown with clean:true and the same outDir as the main server build. This deletes dist/server.mjs (and all other server build artifacts) before writing only the migration chunks. Fix: set clean:false in db-migrations.tsdown.config.ts so it appends to the existing dist/ without wiping it. Also clean up debug artifacts from Dockerfile and entrypoint.sh. Co-Authored-By: mantra <[email protected]>