Skip to content

Commit

Permalink
feat: Add KUBESPHERE_EDITION constants to globals config
Browse files Browse the repository at this point in the history
Signed-off-by: yazhou <yazhouhu@yunify.com>
  • Loading branch information
yazhouio committed Sep 24, 2024
1 parent 5c78cd0 commit d3bc404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import i18n from './utils/i18n';
import emitter from './utils/emitter';

import App from './App';
import { isEmpty } from 'lodash';
import { isEmpty, set } from 'lodash';

globals.context = new Context();
set(globals, 'config.isKsEdition', process.env.KUBESPHERE_EDITION === 'ks');
set(globals, 'config.isKseEdition', process.env.KUBESPHERE_EDITION === 'kse');

if (!isEmpty(globals?.ksConfig?.enabledExtensionModulesStatus)) {
Object.entries(globals.ksConfig.enabledExtensionModulesStatus).forEach(([key, value]) => {
Expand Down

0 comments on commit d3bc404

Please sign in to comment.