refactor: migrate env prefix to VITE_* (#12466)

### What problem does this PR solve?

`UMI_APP_*` to `VITE_*`

### Type of change

- [x] Refactoring
This commit is contained in:
Jimmy Ben Klieve
2026-01-07 09:39:18 +08:00
committed by GitHub
parent 45fb2719cf
commit 51ece37db2
2 changed files with 1 additions and 6 deletions

View File

@ -77,4 +77,4 @@ export function getSortIcon(sorting: false | SortDirection) {
export const PERMISSION_TYPES = ['enable', 'read', 'write', 'share'] as const;
export const EMPTY_DATA = Object.freeze<any[]>([]) as any[];
export const IS_ENTERPRISE =
process.env.UMI_APP_RAGFLOW_ENTERPRISE === 'RAGFLOW_ENTERPRISE';
import.meta.env.VITE_RAGFLOW_ENTERPRISE === 'RAGFLOW_ENTERPRISE';

View File

@ -74,11 +74,6 @@ export default defineConfig(({ mode, command }) => {
},
},
},
define: {
'process.env.UMI_APP_RAGFLOW_ENTERPRISE': JSON.stringify(
env.UMI_APP_RAGFLOW_ENTERPRISE,
),
},
assetsInclude: ['**/*.md'],
base: env.VITE_BASE_URL,
publicDir: 'public',