mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-31 13:57:34 +00:00
The reason we couldn't place it in shared/modelConstants.js is that the frontend uses Vite which requires import.meta.env for environment variables, while the backend uses process.env. Therefore, we created separate config files for the frontend (src/constants/config.ts) and backend (server/constants/config.js).
5 lines
199 B
JavaScript
5 lines
199 B
JavaScript
/**
|
|
* Environment Flag: Is Platform
|
|
* Indicates if the app is running in Platform mode (hosted) or OSS mode (self-hosted)
|
|
*/
|
|
export const IS_PLATFORM = import.meta.env.VITE_IS_PLATFORM === 'true'; |