这是indexloc提供的服务,不要输入任何密码
Skip to content

Unexpected recreation of domain when adding env variables to vercel project #40

@cungminh2710

Description

@cungminh2710

When we added a new environment variable, I saw that the project domain must be replaced. Just want to double check that this is an expected behaviour.

Terraform will perform the following actions:

  # vercel_project.web will be updated in-place
  ~ resource "vercel_project" "web" {
      + environment    = [
          + {
              + id     = (known after apply)
              + key    = "NEXT_PUBLIC_APP_CHECK_RECAPTCHAV3"
              + target = [
                  + "production",
                ]
              + value  = (sensitive value)
            }
        ]
      ~ id             = "prj_XYZ" -> (known after apply)
        name           = "web"
        # (5 unchanged attributes hidden)
    }

  # vercel_project_domain.web_dev must be replaced
-/+ resource "vercel_project_domain" "web_dev" {
      ~ id         = "id_XYZ" -> (known after apply)
      ~ project_id = "prj_XYZ" -> (known after apply) # forces replacement
        # (3 unchanged attributes hidden)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions