Skip to content

fix(server): require db password conditionally#18

Merged
technowizard merged 1 commit into
mainfrom
fix/database-password-validation
May 23, 2026
Merged

fix(server): require db password conditionally#18
technowizard merged 1 commit into
mainfrom
fix/database-password-validation

Conversation

@technowizard
Copy link
Copy Markdown
Owner

Make DATABASE_PASSWORD conditional in server env validation so DATABASE_URL-based deployments no longer require a separate password value.

Changes:

  • Removed the unconditional min(16) validation from DATABASE_PASSWORD
  • Kept the 16-character minimum when DATABASE_URL is not set
  • Updated the error message to reflect the conditional requirement

Why:
The demo DB reset workflow and other DATABASE_URL-only setups were failing env validation even though the password is unused in that path.

@technowizard technowizard self-assigned this May 23, 2026
@technowizard technowizard merged commit 160d228 into main May 23, 2026
2 checks passed
@technowizard technowizard deleted the fix/database-password-validation branch May 23, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant