Skip to content

Commit a20678b

Browse files
author
root
committed
Fix #19: add web env example and document API env vars
1 parent 227a6ef commit a20678b

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ Set:
9090
- `EXPO_PUBLIC_S3_BASE_URL` (optional, public S3 base URL)
9191

9292
Web app environment:
93-
- `FAIRSHARE_API_URL` or `NEXT_PUBLIC_API_URL`
94-
- Defaults to `http://localhost:3001/api/v1`
93+
```
94+
cp apps/web/.env.example apps/web/.env.local
95+
```
96+
- `FAIRSHARE_API_URL` for server-side web requests
97+
- `NEXT_PUBLIC_API_URL` for client-side web requests
98+
- `FAIRSHARE_S3_BASE_URL` and `NEXT_PUBLIC_S3_BASE_URL` for receipt previews when using S3
99+
- Defaults to `http://localhost:3001/api/v1` when API vars are unset
95100

96101
### 3) Start local infrastructure
97102
```

apps/web/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FAIRSHARE_API_URL=http://localhost:3001/api/v1
2+
NEXT_PUBLIC_API_URL=http://localhost:3001/api/v1
3+
FAIRSHARE_S3_BASE_URL=
4+
NEXT_PUBLIC_S3_BASE_URL=

0 commit comments

Comments
 (0)