refactor(core): Port templates config (no-changelog) (#10103)

This commit is contained in:
Iván Ovejero
2024-07-19 10:33:28 +02:00
committed by GitHub
parent 5eca7c8e28
commit c0264f0cff
4 changed files with 19 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ export class InstanceRiskReporter implements RiskReporter {
settings.features = {
communityPackagesEnabled: config.getEnv('nodes.communityPackages.enabled'),
versionNotificationsEnabled: this.globalConfig.versionNotifications.enabled,
templatesEnabled: config.getEnv('templates.enabled'),
templatesEnabled: this.globalConfig.templates.enabled,
publicApiEnabled: isApiEnabled(),
};

View File

@@ -161,8 +161,8 @@ export class FrontendService {
logLevel: config.getEnv('logs.level'),
hiringBannerEnabled: config.getEnv('hiringBanner.enabled'),
templates: {
enabled: config.getEnv('templates.enabled'),
host: config.getEnv('templates.host'),
enabled: this.globalConfig.templates.enabled,
host: this.globalConfig.templates.host,
},
executionMode: config.getEnv('executions.mode'),
pushBackend: config.getEnv('push.backend'),