Skip to content

Commit

Permalink
fix: need to set auth0 client id
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghoriordan committed Dec 31, 2023
1 parent 598653f commit e25b0c9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion libs/project-setup/miller-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ if (millerSettings.projectName !== answers.projectName) {
search: "Miller Dev Tools",
replace: answers.projectName,
},
{
// prettier-ignore
search: `variable "app_stripe_fulfilment_gh_token" {
type = string
sensitive = true
description = "The gh token that gets written to an env var for fullfilment later"
}`,
replace: "",
},
{
// prettier-ignore
search: `output "app_stripe_fulfilment_gh_token" {
value = var.app_stripe_fulfilment_gh_token
sensitive = true
}`,
replace: "",
},
];
await searchFilesForTextAndReplace(replacePatterns);

Expand Down Expand Up @@ -386,6 +403,7 @@ swapEnvVars({
replacementValues: {
AUTH0_DOMAIN:
auth0DevTerraformOutputVariables.app_auth0_dev_domain.value,
AUTH0_CLIENT_ID: auth0DevTerraformOutputVariables.auth0_client_id.value,
COMPOSE_PROJECT_NAME: underscoreCaseName,
APP_POSTGRES_PORT: `54${Math.floor(Math.random() * 10)}${Math.floor(
Math.random() * 10,
Expand All @@ -404,7 +422,7 @@ swapEnvVars({
stripeTerraformOutputVariables.app_stripe_webhook_verification_key
.value,
SUPER_USER_IDS: `"${auth0DevTerraformOutputVariables.test_user_auth0_user_id.value}"`,
GITHUB_ACCESS_TOKEN: `"${stripeTerraformOutputVariables.app_stripe_fulfilment_gh_token.value}"`,
GITHUB_ACCESS_TOKEN: `"${stripeTerraformOutputVariables.app_stripe_fulfilment_gh_token?.value}"`,
},
});
swapEnvVars({
Expand Down

0 comments on commit e25b0c9

Please sign in to comment.