-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
I have a relatively straightforward terraform main.tf
file including this provider & resource:
provider "vercel" {
api_token = var.VERCEL_API_TOKEN
}
...
resource "vercel_project" "mr-ss_web" {
name = "swipe-script"
framework = "nextjs"
root_directory = "packages/swipe-script/web"
install_command = "pnpm i"
serverless_function_region = "lhr1"
environment = [{
key = "DATABASE_URL"
value = "postgresql://${var.POSTGRES_USERNAME}:${var.POSTGRES_DB_PASSWORD}@${aws_db_instance.mr-ss-db-instance.endpoint}/${var.POSTGRES_DB_NAME}"
target = ["preview"]
}]
}
For some reason, any change will remove the entire vercel project and recreate it. I thought maybe I had to add the project ID, but that's readonly. What am I missing here?
Metadata
Metadata
Assignees
Labels
No labels