Skip to content

fix: provide 32-char dev defaults in .env.example#25

Open
jaredzwick wants to merge 1 commit into
mainfrom
fix/env-defaults
Open

fix: provide 32-char dev defaults in .env.example#25
jaredzwick wants to merge 1 commit into
mainfrom
fix/env-defaults

Conversation

@jaredzwick
Copy link
Copy Markdown
Collaborator

Summary

  • cp .env.example .env && pnpm dev was failing with BetterAuthError: Invalid BETTER_AUTH_SECRET: must be at least 32 characters long.
  • Replaces the 16-char YOUR_SECRET_HERE placeholders with working dev-only defaults that satisfy BetterAuth's length requirement, so onboarding is clone → cp → run.
  • Header comment marks them as dev-only and to rotate before real deploys.

Test plan

  • cp .env.example .env
  • pnpm i && docker compose up -d db && pnpm dev
  • App boots without the BetterAuth length error

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