chore: allow skipping auth seed via env

This commit is contained in:
Esdras Renan 2025-11-19 17:21:20 -03:00
parent 724300c965
commit c36670605b

View file

@ -26,8 +26,12 @@ echo "[start-web] prisma migrate deploy"
bunx prisma migrate deploy bunx prisma migrate deploy
# Seed Better Auth users safely (ensure-only by default) # Seed Better Auth users safely (ensure-only by default)
echo "[start-web] seeding Better Auth users (ensure-only)" if [ "${SKIP_AUTH_SEED:-false}" != "true" ]; then
bun run auth:seed || true echo "[start-web] seeding Better Auth users (ensure-only)"
bun run auth:seed || true
else
echo "[start-web] skipping auth seed (SKIP_AUTH_SEED=true)"
fi
echo "[start-web] launching Next.js" echo "[start-web] launching Next.js"
exec bun run start -- --port 3000 exec bun run start -- --port 3000