Skip to content

Commit ba0b4aa

Browse files
pypesdevjaredzwick
andauthored
fix: provide 32-char dev defaults in .env.example so BetterAuth boots (#24)
Co-authored-by: Jared Zwick <52264361+jaredzwick@users.noreply.github.com>
1 parent 6e0838d commit ba0b4aa

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.env.example

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
# Dev-only defaults — fine for local. Rotate before deploying anywhere real.
2+
13
# Used to encrypt JWT tokens
2-
PAYLOAD_SECRET=YOUR_SECRET_HERE
4+
PAYLOAD_SECRET=dev_payload_secret_change_me_32_chars_min
35

46
# Used to configure CORS, format links and more. No trailing slash
57
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
68

79
# Secret used to authenticate cron jobs
8-
CRON_SECRET=YOUR_CRON_SECRET_HERE
10+
CRON_SECRET=dev_cron_secret_change_me_32_chars_minimum
911

1012
# Used to validate preview requests
11-
PREVIEW_SECRET=YOUR_SECRET_HERE
13+
PREVIEW_SECRET=dev_preview_secret_change_me_32_chars_min
1214

13-
BETTER_AUTH_SECRET=YOUR_SECRET_HERE
15+
# Required by BetterAuth — must be at least 32 chars
16+
BETTER_AUTH_SECRET=dev_better_auth_secret_change_me_32_chars
1417

1518
BETTER_AUTH_URL=http://localhost:3000
1619

0 commit comments

Comments
 (0)