Commit 8b69820
authored
chore: add .env support with gitignore protection (#3283)
* chore: add .env support with gitignore protection
Add .env/.env.* to gitignore to prevent secret leaks, provide
.env.example with all billing env vars, and use Node 22 --env-file
flag in start/dev scripts for automatic loading.
* fix(scripts): use --env-file-if-exists to avoid crash when .env is absent
* fix(chore): keep start/dev scripts without .env, add separate billing scripts
start/dev remain unchanged so the app works without Stripe.
start:billing/dev:billing load .env for Stripe testing.1 parent 197768c commit 8b69820
3 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments