🔧(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.
This commit is contained in:
lebaudantoine
2025-06-06 21:57:57 +02:00
committed by aleb_the_flash
parent e01b1713c4
commit 018eec8a46
8 changed files with 8 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ services:
target: frontend-production target: frontend-production
args: args:
VITE_API_BASE_URL: "http://localhost:8071" VITE_API_BASE_URL: "http://localhost:8071"
VITE_APP_TITLE: "LaSuite Meet"
image: meet:frontend-development image: meet:frontend-development
ports: ports:
- "3000:8080" - "3000:8080"

View File

@@ -1 +1,2 @@
VITE_API_BASE_URL=http://localhost:8071/ VITE_API_BASE_URL=http://localhost:8071/
VITE_APP_TITLE=LaSuite Meet

View File

@@ -0,0 +1 @@
VITE_APP_TITLE=LaSuite Meet

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/assets/icon.svg" /> <link rel="icon" type="image/svg+xml" href="/assets/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Visio</title> <title>%VITE_APP_TITLE%</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -160,7 +160,7 @@ export const CreateMeetingButton = () => {
})} })}
> >
{/* {/*
* Using popup for Visio to access session cookies (blocked in iframes). * Using popup for La Suite Meet to access session cookies (blocked in iframes).
* If authenticated: Popup creates room and returns data directly. * If authenticated: Popup creates room and returns data directly.
* If not: Popup sends callbackId, redirects to login, then backend * If not: Popup sends callbackId, redirects to login, then backend
* associates new room with callbackId after authentication. * associates new room with callbackId after authentication.

View File

@@ -1,6 +1,7 @@
/// <reference types="vite/client" /> /// <reference types="vite/client" />
interface ImportMetaEnv { interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string readonly VITE_API_BASE_URL: string
readonly VITE_APP_TITLE: string
} }
interface ImportMeta { interface ImportMeta {

View File

@@ -127,6 +127,7 @@ backend:
frontend: frontend:
envVars: envVars:
VITE_APP_TITLE: "LaSuite Meet"
VITE_PORT: 8080 VITE_PORT: 8080
VITE_HOST: 0.0.0.0 VITE_HOST: 0.0.0.0
VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/ VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/

View File

@@ -153,6 +153,7 @@ backend:
frontend: frontend:
envVars: envVars:
VITE_APP_TITLE: "LaSuite Meet"
VITE_PORT: 8080 VITE_PORT: 8080
VITE_HOST: 0.0.0.0 VITE_HOST: 0.0.0.0
VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/ VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/