## Summary Add support for multi-workspace feature and adjust configurations and states accordingly. - Introduced new state isMultiWorkspaceEnabledState. - Updated ClientConfigProviderEffect component to handle multi-workspace. - Modified GraphQL schema and queries to include multi-workspace related configurations. - Adjusted server environment variables and their respective documentation to support multi-workspace toggle. - Updated server-side logic to handle new multi-workspace configurations and conditions.
37 lines
945 B
TypeScript
37 lines
945 B
TypeScript
import { ClientConfig } from '~/generated-metadata/graphql';
|
|
import { CaptchaDriverType } from '~/generated/graphql';
|
|
|
|
export const mockedClientConfig: ClientConfig = {
|
|
signInPrefilled: true,
|
|
isMultiWorkspaceEnabled: false,
|
|
isSSOEnabled: false,
|
|
frontDomain: 'localhost',
|
|
defaultSubdomain: 'app',
|
|
chromeExtensionId: 'MOCKED_EXTENSION_ID',
|
|
debugMode: false,
|
|
analyticsEnabled: true,
|
|
support: {
|
|
supportDriver: 'front',
|
|
supportFrontChatId: null,
|
|
__typename: 'Support',
|
|
},
|
|
sentry: {
|
|
dsn: 'MOCKED_DSN',
|
|
release: 'MOCKED_RELEASE',
|
|
environment: 'MOCKED_ENVIRONMENT',
|
|
__typename: 'Sentry',
|
|
},
|
|
billing: {
|
|
isBillingEnabled: true,
|
|
billingUrl: '',
|
|
billingFreeTrialDurationInDays: 10,
|
|
__typename: 'Billing',
|
|
},
|
|
captcha: {
|
|
provider: CaptchaDriverType.GoogleRecaptcha,
|
|
siteKey: 'MOCKED_SITE_KEY',
|
|
__typename: 'Captcha',
|
|
},
|
|
api: { mutationMaximumAffectedRecords: 100 },
|
|
};
|