Skip to content

Commit

Permalink
add new env var for Next
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed Dec 8, 2023
1 parent 61b1e9d commit b75bdfc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions infrastructure/kubernetes/modules/client/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ resource "kubernetes_service" "client_service" {
}
}

resource "random_password" "nextauth_secret" {
length = 24
special = true
}

resource "kubernetes_deployment" "client_deployment" {
metadata {
name = var.deployment_name
Expand Down Expand Up @@ -75,6 +80,11 @@ resource "kubernetes_deployment" "client_deployment" {
value = var.site_url
}

env {
name = "NEXTAUTH_SECRET"
value = random_password.nextauth_secret.result
}

env {
name = "NEXT_PUBLIC_API_URL"
value = var.api_url
Expand Down

1 comment on commit b75bdfc

@vercel
Copy link

@vercel vercel bot commented on b75bdfc Dec 8, 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:

marxan – ./

marxan-vizzuality1.vercel.app
marxan-git-develop-vizzuality1.vercel.app
marxan23.vercel.app

Please sign in to comment.