fix: pick env from public_config for marketplace (#4648)

This commit is contained in:
Gandharv 2022-10-28 19:41:18 +07:00 committed by GitHub
parent 3fbbb846df
commit 05aedbc8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -259,7 +259,7 @@ class App extends React.Component {
switchDarkMode={this.switchDarkMode}
darkMode={darkMode}
/>
{config.ENABLE_MARKETPLACE_FEATURE && (
{window.public_config?.ENABLE_MARKETPLACE_FEATURE && (
<AdminRoute
exact
path="/integrations"

View file

@ -158,7 +158,6 @@ module.exports = {
apiUrl: `${stripTrailingSlash(API_URL[environment]) || ''}/api`,
SERVER_IP: process.env.SERVER_IP,
COMMENT_FEATURE_ENABLE: process.env.COMMENT_FEATURE_ENABLE ?? true,
ENABLE_MARKETPLACE_FEATURE: process.env.ENABLE_MARKETPLACE_FEATURE ?? false,
ENABLE_MULTIPLAYER_EDITING: true,
TOOLJET_MARKETPLACE_URL:
process.env.TOOLJET_MARKETPLACE_URL || 'https://tooljet-plugins-production.s3.us-east-2.amazonaws.com',

View file

@ -30,6 +30,7 @@ export class AppConfigService {
'SSO_DISABLE_SIGNUPS',
'TOOLJET_HOST',
'SUB_PATH',
'ENABLE_MARKETPLACE_FEATURE',
];
}