From 585c526a659a96f23e764968b9bbbcb71be59f6d Mon Sep 17 00:00:00 2001 From: William Valentin Date: Sun, 7 Sep 2025 12:21:44 -0700 Subject: [PATCH] feat: Add APP_NAME env support for branding and deployment - Make app name configurable via APP_NAME env variable - Update UI, HTML, Docker, scripts, and k8s to use APP_NAME - Add process-html.sh for template substitution - Document APP_NAME usage in docs/APP_NAME_CONFIGURATION.md - Update Dockerfile, compose, and scripts for dynamic naming - Add index.html.template for environment-based branding --- App.tsx | 2 +- docker/Dockerfile | 17 ++- docker/docker-compose.yaml | 4 + docs/APP_NAME_CONFIGURATION.md | 198 ++++++++++++++++++++++++++ index.html | 2 +- index.html.template | 51 +++++++ k8s/frontend-deployment.yaml.template | 2 +- package.json | 3 +- scripts/buildx-helper.sh | 35 +++-- scripts/deploy.sh | 27 ++-- scripts/process-html.sh | 24 ++++ scripts/validate-deployment.sh | 35 ++--- vite.config.ts | 3 + 13 files changed, 352 insertions(+), 51 deletions(-) create mode 100644 docs/APP_NAME_CONFIGURATION.md create mode 100644 index.html.template create mode 100755 scripts/process-html.sh diff --git a/App.tsx b/App.tsx index 23862df..cbd7c6a 100644 --- a/App.tsx +++ b/App.tsx @@ -116,7 +116,7 @@ const Header: React.FC<{ className='hidden sm:flex items-center space-x-2 px-4 py-2 text-sm font-medium text-slate-700 bg-slate-100 rounded-lg hover:bg-slate-200 transition-colors dark:bg-slate-700 dark:text-slate-200 dark:hover:bg-slate-600' >