Skip to content

Commit e25b0c9

Browse files
fix: need to set auth0 client id
1 parent 598653f commit e25b0c9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

libs/project-setup/miller-setup.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,23 @@ if (millerSettings.projectName !== answers.projectName) {
119119
search: "Miller Dev Tools",
120120
replace: answers.projectName,
121121
},
122+
{
123+
// prettier-ignore
124+
search: `variable "app_stripe_fulfilment_gh_token" {
125+
type = string
126+
sensitive = true
127+
description = "The gh token that gets written to an env var for fullfilment later"
128+
}`,
129+
replace: "",
130+
},
131+
{
132+
// prettier-ignore
133+
search: `output "app_stripe_fulfilment_gh_token" {
134+
value = var.app_stripe_fulfilment_gh_token
135+
sensitive = true
136+
}`,
137+
replace: "",
138+
},
122139
];
123140
await searchFilesForTextAndReplace(replacePatterns);
124141

@@ -386,6 +403,7 @@ swapEnvVars({
386403
replacementValues: {
387404
AUTH0_DOMAIN:
388405
auth0DevTerraformOutputVariables.app_auth0_dev_domain.value,
406+
AUTH0_CLIENT_ID: auth0DevTerraformOutputVariables.auth0_client_id.value,
389407
COMPOSE_PROJECT_NAME: underscoreCaseName,
390408
APP_POSTGRES_PORT: `54${Math.floor(Math.random() * 10)}${Math.floor(
391409
Math.random() * 10,
@@ -404,7 +422,7 @@ swapEnvVars({
404422
stripeTerraformOutputVariables.app_stripe_webhook_verification_key
405423
.value,
406424
SUPER_USER_IDS: `"${auth0DevTerraformOutputVariables.test_user_auth0_user_id.value}"`,
407-
GITHUB_ACCESS_TOKEN: `"${stripeTerraformOutputVariables.app_stripe_fulfilment_gh_token.value}"`,
425+
GITHUB_ACCESS_TOKEN: `"${stripeTerraformOutputVariables.app_stripe_fulfilment_gh_token?.value}"`,
408426
},
409427
});
410428
swapEnvVars({

0 commit comments

Comments
 (0)