Skip to content

Commit

Permalink
Change default config for non testing/localhost deployment (#178)
Browse files Browse the repository at this point in the history
* Change default config for non testing/localhost deployment

Disable most features (login, editing, etc.) and assume deployment in PlanQK mode by default when not running under localhost.

* Remove debug output
  • Loading branch information
buehlefs authored Aug 6, 2024
1 parent 06216c7 commit f023ad1
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,18 @@ interface EtcdNode {
createdIndex: number;
}

const IS_LOCALHOST = window.location?.hostname === 'localhost';

const initialValues: PatternAtlasUiConfiguration = {
features: {
designModel: false,
patternCandidate: true,
patternCandidate: IS_LOCALHOST ? true : false,
patternViews: false,
issue: true,
showSettings: true,
editing: true,
authentication: true,
planqkUi: false,
issue: IS_LOCALHOST ? true : false,
showSettings: IS_LOCALHOST ? true : false,
editing: IS_LOCALHOST ? true : false,
authentication: IS_LOCALHOST ? true : false,
planqkUi: IS_LOCALHOST ? false : true,
deploymentModelling: false,
},
};
Expand Down

0 comments on commit f023ad1

Please sign in to comment.