Commit bd9abd7
committed
feat(frontend): configure staging and production environments (FRO-61)
- Add .env.staging with Railway staging API URL
- Add .env.production placeholder for future production environment
- Add build:staging script to use staging configuration
- Allow .env.staging and .env.production in git (no secrets, only public URLs)
- Simplify api.ts to rely on environment files
Environment configuration:
- Development: localhost:5000/api (fallback)
- Staging: https://fantasyrealm-api-staging.up.railway.app/api
- Production: To be configured with Railway production URL
Build: ✓ (staging mode verified)1 parent f085363 commit bd9abd7
File tree
4 files changed
+7
-0
lines changed- src/frontend
4 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments