Skip to content

Commit

Permalink
Update slug format for JetBrains Gateway apps
Browse files Browse the repository at this point in the history
This change improves URL uniqueness by appending a lowercase IDE
identifier to the slug, ensuring distinct slugs for each default IDE.
  • Loading branch information
matifali committed Nov 14, 2024
1 parent 5bc2aa4 commit 937ffcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetbrains-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ data "coder_workspace_owner" "me" {}
resource "coder_app" "gateway" {
for_each = length(var.default) > 1 ? toset(var.default) : toset([data.coder_parameter.jetbrains_ide[0].value])
agent_id = var.agent_id
slug = var.slug
slug = "${var.slug}-${lower(each.value)}"
display_name = local.jetbrains_ides[each.value].name
icon = local.jetbrains_ides[each.value].icon
external = true
Expand Down

0 comments on commit 937ffcd

Please sign in to comment.