Skip to content

Commit 70545ba

Browse files
committed
enh: add discord url
1 parent d60b2bb commit 70545ba

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

infra/Pulumi.dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ config:
33
podcodar:accountId: 9ccff81da5d7c234138d96989610537d
44
podcodar:zoneId: ec5904d9f2d5278ff1ecaf0ca2b71808
55
podcodar:environment: dev
6+
podcodar:discord-invite-url:
7+
secure: v1:bFuY2p5tjPQo1bLf:O2AT5zJEZPOhHq8kHr619itimZBpC72oada4Cuz2J8kDKeMhsy0gc1Zv5N1c

infra/Pulumi.production.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ config:
33
podcodar:accountId: 9ccff81da5d7c234138d96989610537d
44
podcodar:zoneId: ec5904d9f2d5278ff1ecaf0ca2b71808
55
podcodar:environment: production
6+
podcodar:discord-invite-url:
7+
secure: v1:k1SUxsqe0gi3XW9q:YgcOFpVdXhClBNqWkEQtmTyOLZTdLHHaeGmeHiG9mURZMjbzP+IF172NLbi8

infra/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const config = new pulumi.Config();
88
const accountId = config.require('accountId');
99
const zoneId = config.require('zoneId');
1010
const environment = config.require('environment');
11+
const discordInviteUrl = config.getSecret('discord-invite-url');
12+
1113
const isProd = environment === 'production';
1214
const workerDomain = isProd ? 'https://prod.podcodar.org' : 'https://dev.podcodar.org';
1315

@@ -64,6 +66,11 @@ const workerVersion = new cloudflare.WorkerVersion(
6466
type: 'plain_text',
6567
text: workerDomain,
6668
},
69+
{
70+
name: 'DISCORD_INVITE_URL',
71+
type: 'plain_text',
72+
text: discordInviteUrl,
73+
},
6774
],
6875

6976
modules: builder.stdout.apply((serverDir) => discoverWorkerModules(`${serverDir}/server`)),

0 commit comments

Comments
 (0)