Skip to content

Commit

Permalink
fix(terraform): add vercel authentication settings (#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored Nov 19, 2023
1 parent 2af67bc commit 8207006
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions terraform/project.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ resource "vercel_project" "this" {
root_directory = "apps/web"
serverless_function_region = "hnd1"
team_id = var.vercel_team_id
vercel_authentication = {
protect_production = false
}
}

resource "vercel_project_domain" "date" {
Expand All @@ -34,11 +37,6 @@ resource "vercel_project_domain" "ink" {
team_id = vercel_project.this.team_id
}

resource "random_password" "cron_secret" {
length = 16
special = false
}

resource "vercel_project_environment_variable" "base_url" {
key = "NEXT_PUBLIC_BASE_URL"
project_id = vercel_project.this.id
Expand Down Expand Up @@ -91,6 +89,9 @@ resource "vercel_project" "admin" {
root_directory = "apps/admin"
serverless_function_region = "hnd1"
team_id = var.vercel_team_id
vercel_authentication = {
protect_production = false
}
}

resource "vercel_project_domain" "admin" {
Expand All @@ -99,6 +100,11 @@ resource "vercel_project_domain" "admin" {
team_id = vercel_project.admin.team_id
}

resource "random_password" "cron_secret" {
length = 16
special = false
}

resource "vercel_project_environment_variable" "admin_google_api_key" {
key = "GOOGLE_API_KEY"
project_id = vercel_project.admin.id
Expand Down

2 comments on commit 8207006

@vercel
Copy link

@vercel vercel bot commented on 8207006 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shinju-date-admin – ./apps/admin

shinju-date-admin-git-main-inabagumi.vercel.app
shinju-date-admin-inabagumi.vercel.app
admin.shinju.date

@vercel
Copy link

@vercel vercel bot commented on 8207006 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.