Skip to content

Commit 19634bc

Browse files
committed
enh: pass invite url at build time
1 parent 70545ba commit 19634bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

infra/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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');
11+
const discordInviteUrl = config.requireSecret('discord-invite-url');
1212

1313
const isProd = environment === 'production';
1414
const workerDomain = isProd ? 'https://prod.podcodar.org' : 'https://dev.podcodar.org';
@@ -20,6 +20,7 @@ const builder = new command.local.Command(
2020
delete: 'echo "No cleanup necessary"',
2121
environment: {
2222
BASE_URL: workerDomain,
23+
DISCORD_INVITE_URL: discordInviteUrl,
2324
},
2425
},
2526
{ replacementTrigger: getGitCommitHash() }

0 commit comments

Comments
 (0)