This website requires JavaScript.
Explore
Help
Sign In
studio
/
meet
Watch
2
Star
0
Fork
0
You've already forked meet
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
a02cd2604484f23eb663a41a2380edbe38b50eca
meet
/
src
/
frontend
/
.env.development
3 lines
69 B
Plaintext
Raw
Normal View
History
Unescape
Escape
🔧(frontend) refactor API URl to work for remote environments Discussed IRL with @manuhabitela. In developpement, we build locally the Docker image. Thus, we can pass values to the frontend before the npm build command was called. Environment variables are great for configuration, and work perfectly in dev mode, building Docker image on the fly. However, in other environment (e.g. staging, pre-prod, prod) we'll pull a common Docker image published in a remote registry. All cited environments should use the same Docker image to make tests/deployment reproducible between envs. As the Docker image is not rebuilt on the fly, we cannot easily configure customized environment variables for each environment. The API base URL would have a different value for each environment, and would require a different environment variable. Inspired by Impress works, if no environment variable is passed for the API URL, the window origin will be used, and then the API path will be appended. Frontend and backend are always deployed on the same URL, usually frontend is at the '/' route, and backend at the '/api/vXX/' route. If any configuration are required for each remote environment, they would be retrieved from the API at runtime. Voila! Don't hesitate to challenge this commit.
2024-07-10 20:50:40 +02:00
VITE_API_BASE_URL=http://localhost:8071/
🔧(frontend) make app title customizable with env variable override Replace default "visio" with "LaSuite Meet" and allow env variable customization. Default Docker image uses "LaSuite Meet", but deployments can override with custom values by setting env vars and rebuilding.
2025-06-06 21:57:57 +02:00
VITE_APP_TITLE=LaSuite Meet
Reference in New Issue
Copy Permalink