refactor(branding): drop VITE_APP_NAME compat shim
Per the pre-public-launch policy in CLAUDE.md, strict-from-the-start. brand.json is the sole source for app naming; VITE_APP_NAME no longer overrides. Migration responsibility moves to aiolabs/server-deploy#8 (Phase 2): hosts that currently set VITE_APP_NAME (cfaun → "Bouge") must instead declare BRAND_DIR pointing at a per-host branding/ directory before their next webapp flake input bump. process.env.VITE_APP_NAME is still set internally (from brand.name) to keep Vite's HTML %VITE_APP_NAME% substitution working — but it's internal wiring now, not a user-facing knob. Part of aiolabs/webapp#95. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ce5a1a6a56
commit
4e7502b30c
2 changed files with 7 additions and 13 deletions
|
|
@ -14,10 +14,9 @@ import { brand, brandAlias } from './vite-branding'
|
|||
// path-mounted standalones at /libra/, /market/, etc. The hub is a
|
||||
// launcher page; users install the standalones they actually use.
|
||||
|
||||
// Brand name flows into index.html's `%VITE_APP_NAME% Hub` title.
|
||||
// VITE_APP_NAME env override stays during the Phase 2 server-deploy
|
||||
// migration (aiolabs/webapp#95); drop once all hosts move to BRAND_DIR.
|
||||
process.env.VITE_APP_NAME = process.env.VITE_APP_NAME ?? brand.name
|
||||
// Brand name flows into index.html's `%VITE_APP_NAME% Hub` title via
|
||||
// Vite's HTML env-var substitution.
|
||||
process.env.VITE_APP_NAME = brand.name
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
// Per-app dep cache so concurrent dev servers don't race on .vite/deps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue