Rename NEXT_PUBLIC_... env variables to allow reading from env at runtime

This commit is contained in:
Andrew Pennington 2024-08-15 20:06:40 +01:00
parent 834a38046f
commit 376220b26e
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA
10 changed files with 22 additions and 22 deletions

View file

@ -20,8 +20,8 @@ docker compose down --rmi all
```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
- BACKEND_API_URL=http://127.0.0.1:3001/api
- BACKEND_WS_URL=ws://127.0.0.1:3001
```
6. Save and close the `docker-compose.yaml` file
@ -58,8 +58,8 @@ nano docker-compose.yaml
```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
- BACKEND_API_URL=http://127.0.0.1:3001/api
- BACKEND_WS_URL=ws://127.0.0.1:3001
```
6. Save and exit the editor
@ -96,8 +96,8 @@ nano docker-compose.yaml
```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
- BACKEND_API_URL=http://127.0.0.1:3001/api
- BACKEND_WS_URL=ws://127.0.0.1:3001
```
6. Save and exit the editor