Add deploy buttons and clean environment variables (#974)

* add render.yaml

* Clean environment variables



---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Félix Malfait
2023-07-31 14:36:04 -07:00
committed by GitHub
parent a90cbac5e6
commit b028d9fd2a
31 changed files with 194 additions and 112 deletions

View File

@ -30,7 +30,7 @@ export class ClientConfig {
telemetry: Telemetry;
@Field(() => Boolean)
demoMode: boolean;
signInPrefilled: boolean;
@Field(() => Boolean)
debugMode: boolean;

View File

@ -12,17 +12,17 @@ export class ClientConfigResolver {
async clientConfig(): Promise<ClientConfig> {
const clientConfig: ClientConfig = {
authProviders: {
google: this.environmentService.isAuthGoogleEnabled() ?? false,
google: this.environmentService.isAuthGoogleEnabled(),
magicLink: false,
password: true,
},
telemetry: {
enabled: this.environmentService.isTelemetryEnabled() ?? false,
enabled: this.environmentService.isTelemetryEnabled(),
anonymizationEnabled:
this.environmentService.isTelemetryAnonymizationEnabled() ?? false,
this.environmentService.isTelemetryAnonymizationEnabled(),
},
demoMode: this.environmentService.isDemoMode() ?? false,
debugMode: this.environmentService.isDebugMode() ?? false,
signInPrefilled: this.environmentService.isSignInPrefilled(),
debugMode: this.environmentService.isDebugMode(),
};
return Promise.resolve(clientConfig);