feat(confluence-import): hide API importer behind BETA_CONFLUENCE_IMPORTER flag

This commit is contained in:
Philipinho
2026-06-15 21:43:38 +01:00
parent 97a1248818
commit feb5167771
5 changed files with 19 additions and 1 deletions
@@ -194,6 +194,13 @@ export class EnvironmentService {
return !this.isCloud();
}
isBetaConfluenceImporter(): boolean {
const flag = this.configService
.get<string>('BETA_CONFLUENCE_IMPORTER', 'false')
.toLowerCase();
return flag === 'true';
}
getStripePublishableKey(): string {
return this.configService.get<string>('STRIPE_PUBLISHABLE_KEY');
}
@@ -49,6 +49,8 @@ export class StaticModule implements OnModuleInit {
: undefined,
POSTHOG_HOST: this.environmentService.getPostHogHost(),
POSTHOG_KEY: this.environmentService.getPostHogKey(),
BETA_CONFLUENCE_IMPORTER:
this.environmentService.isBetaConfluenceImporter(),
};
const windowScriptContent = `<script>window.CONFIG=${JSON.stringify(configString)};</script>`;