Skip to content

Commit 64ab404

Browse files
easyCZroboquat
authored andcommitted
[public-api-server] Enable in preview environments
1 parent 2021e83 commit 64ab404

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.werft/jobs/build/installer/installer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class Installer {
6161
this.configureObservability(slice)
6262
this.configureAuthProviders(slice)
6363
this.configureSSHGateway(slice)
64+
this.configurePublicAPIServer(slice)
6465

6566
if (this.options.analytics) {
6667
this.includeAnalytics(slice)
@@ -143,6 +144,10 @@ export class Installer {
143144
exec(`yq w -i ${this.options.installerConfigPath} sshGatewayHostKey.name "host-key"`)
144145
}
145146

147+
private configurePublicAPIServer(slice: string) {
148+
exec(`yq w -i ${this.options.installerConfigPath} experimental.webapp.publicApi.enabled true`, { slice: slice })
149+
}
150+
146151
private includeAnalytics(slice: string): void {
147152
exec(`yq w -i ${this.options.installerConfigPath} analytics.writer segment`, { slice: slice });
148153
exec(`yq w -i ${this.options.installerConfigPath} analytics.segmentKey ${this.options.analytics.token}`, { slice: slice });

0 commit comments

Comments
 (0)