8000 feat(vscode-web): support hosting on a subpath with `subdomain=false` by Emyrk · Pull Request #288 · coder/modules · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

feat(vscode-web): support hosting on a subpath with subdomain=false #288

Merged
merged 18 commits into from
Oct 21, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make SERVER_BASE_PATH support subdomain option
  • Loading branch information
matifali committed Oct 21, 2024
commit eb95ea41ab4095361d102db6980a79e6757d5c29
5 changes: 2 additions & 3 deletions vscode-web/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ resource "coder_script" "vscode-web" {
EXTENSIONS_DIR : var.extensions_dir,
FOLDER : var.folder,
AUTO_INSTALL_EXTENSIONS : var.auto_install_extensions,
// TODO: This assumes the agent is called "main"
SERVER_BASE_PATH : format("/@%s/%s.%s/apps/vscode-web/",
data.coder_workspace_owner.me.name, data.coder_workspace.me.name, "main"),
SERVER_BASE_PATH : var.subdomain ? "" : format("/@%s/%s/apps/vscode-web/",
data.coder_workspace_owner.me.name, data.coder_workspace.me.name),
})
run_on_start = true

Expand Down
0