♻️(frontend) frontend environment free

Until now, the front had to know at build time
the url of the backend and the webrtc server
to be able to communicate with them.
It is not optimal because it means that we need
multiple docker image (1 per environment) to have
the app working, it is not very flexible.

This commit will make the frontend "environment free"
by determining these urls at runtime.
This commit is contained in:
Anthony LC
2024-06-03 12:53:23 +02:00
committed by Anthony LC
parent 4636c611c6
commit c7d1312f89
13 changed files with 58 additions and 52 deletions

View File

@@ -60,7 +60,7 @@ backend:
frontend:
envVars:
PORT: 8080
NEXT_PUBLIC_API_URL: https://desk.127.0.0.1.nip.io/api/v1.0/
NEXT_PUBLIC_API_ORIGIN: https://desk.127.0.0.1.nip.io
replicas: 1
command: