chore: allow skipping auth seed via env
This commit is contained in:
parent
724300c965
commit
c36670605b
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||||
|
if [ "${SKIP_AUTH_SEED:-false}" != "true" ]; then
|
||||||
echo "[start-web] seeding Better Auth users (ensure-only)"
|
echo "[start-web] seeding Better Auth users (ensure-only)"
|
||||||
bun run auth:seed || true
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue