build: use bun for installs and pin better-auth core deps #2

Merged
adrianbonpin merged 1 commits from fix/build-with-bun into prod 2026-08-18 18:05:55 +00:00
1 Commits
Author SHA1 Message Date
adrianbonpin d86d59b4a5 build: use bun for installs and pin better-auth core deps
Railpack builds the Dokploy app from the app's build path, which is
apps/web — a dir with no bun.lock (it lives at the monorepo root), so
Railpack fell back to npm. npm then resolved @better-auth/core's ^1.6.22
peer to 1.7.0 while the pinned plugins peer better-call@1.3.7, causing
ERESOLVE and failing the build.

- Declare packageManager: bun@1.3.14 at the root (Railpack's
  highest-priority signal; combined with removing the Dokploy build path,
  installs run 'bun install --frozen-lockfile' at the workspace root).
- Add npm overrides (@better-auth/core 1.6.22, better-call 1.3.7) in
  root + apps/web as a safety net so any npm-based build resolves too.
- Verified: isolated npm install resolves (698 pkgs), bun install is a
  no-op (1020 pkgs, versions unchanged), full next build passes.
2026-08-19 02:05:40 +08:00