Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terraform/django.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module "django" {
ec2_worker_ssh_public_key = file("${path.module}/ssh-key.pub")

additional_django_vars = {
DJANGO_UVDAT_WEB_URL = "https://www.geodatalytics.kitware.com/"
DJANGO_UVDAT_WEB_URL = "https://www.geodatalytics.kitware.com/"
DJANGO_DATABASE_POOL_MAX_SIZE = "12"
DJANGO_SENTRY_DSN = "https://5302701c88f1fa6ec056e0c269071191@o267860.ingest.us.sentry.io/4510620385804288"
}
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variable "SENTRY_AUTH_TOKEN" {
type = string
nullable = false
sensitive = true
}
8 changes: 7 additions & 1 deletion terraform/www.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ resource "cloudflare_pages_project" "www" {
environment_variables = local.www_env_vars
}
production {
environment_variables = local.www_env_vars
environment_variables = merge(
local.www_env_vars,
{
VITE_APP_SENTRY_DSN = "https://648b9234b2fc2df0dd59192ddb0111f7@o267860.ingest.us.sentry.io/4511108704501760"
SENTRY_AUTH_TOKEN = var.SENTRY_AUTH_TOKEN
},
)
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions web/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ interface ViteTypeOptions {
interface ImportMetaEnv {
readonly VITE_APP_API_ROOT: string;
readonly VITE_APP_VERSION: string;
// This is not set in development
readonly VITE_APP_SENTRY_DSN?: string;
}

interface ImportMeta {
Expand Down
Loading