refactor(backend): update environment variable handling and replace VITE_IS_PLATFORM with IS_PLATFORM constant

This commit is contained in:
Haileyesus
2026-02-02 11:54:55 +03:00
parent 312654fdc6
commit 0b4d048e9a
5 changed files with 35 additions and 23 deletions

View File

@@ -2,4 +2,4 @@
* 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';
export const IS_PLATFORM = process.env.VITE_IS_PLATFORM === 'true';