Commit 2dd0cf8
committed
docs: use CORS_ORIGIN, the env var the server actually reads
The root .env.example, API.md, and README.md told users to set
ALLOWED_ORIGIN, but the server's entry point (index.js -> config/env.js)
reads only CORS_ORIGIN and throws "CORS_ORIGIN must be set in production"
on boot when it is unset. ALLOWED_ORIGIN is read only by the unreferenced
legacy app.js. So following the docs left CORS_ORIGIN unset and crashed
production on startup.
Align the root docs on CORS_ORIGIN (matching config/env.js and the
server's own server/.env.example and server/README.md), and fix the
API.md env table, which had the two names inverted.1 parent 824093a commit 2dd0cf8
3 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
| 452 | + | |
454 | 453 | | |
455 | 454 | | |
456 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
0 commit comments