feat: add VITE_APP_MODE environment variable support

- Introduced VITE_APP_MODE variable in multiple files to manage application modes.
- Updated dev.mjs and docker-compose.dev.yml to set different modes for development.
- Enhanced type definitions in vite-env.d.ts to include VITE_APP_MODE options.
- Modified AutomakerLogo component to display version suffix based on the current app mode.
- Improved OS detection logic in use-os-detection.ts to utilize Electron's platform information.
- Updated ElectronAPI interface to expose platform information.

These changes provide better control over application behavior based on the mode, enhancing the development experience.
This commit is contained in:
webdevcody
2026-01-09 15:30:49 -05:00
parent b2cf17b53b
commit 93807c22c1
7 changed files with 34 additions and 8 deletions

View File

@@ -133,6 +133,7 @@ async function main() {
env: {
TEST_PORT: String(webPort),
VITE_SERVER_URL: `http://localhost:${serverPort}`,
VITE_APP_MODE: '1',
},
},
__dirname
@@ -159,6 +160,7 @@ async function main() {
PORT: String(serverPort),
VITE_SERVER_URL: `http://localhost:${serverPort}`,
CORS_ORIGIN: corsOriginEnv,
VITE_APP_MODE: '2',
},
},
__dirname