chore: disable access url to get a try.coder.app in dev (#25510)

This commit is contained in:
Steven Masley
2026-05-20 08:49:23 -05:00
committed by GitHub
parent e73292fc89
commit 19a1fa5c13
+4 -1
View File
@@ -705,10 +705,13 @@ func startServer(cfg *devConfig, group *procGroup) error {
"server", "server",
"--http-address", fmt.Sprintf("0.0.0.0:%d", cfg.apiPort), "--http-address", fmt.Sprintf("0.0.0.0:%d", cfg.apiPort),
"--swagger-enable", "--swagger-enable",
"--access-url", cfg.accessURL,
"--dangerous-allow-cors-requests=true", "--dangerous-allow-cors-requests=true",
"--enable-terraform-debug-mode", "--enable-terraform-debug-mode",
} }
if cfg.accessURL != "" {
// Setting access url to `""` enables a `try.coder.app` url
serverArgs = append(serverArgs, "--access-url", cfg.accessURL)
}
if cfg.coderMetricsPort != 0 { if cfg.coderMetricsPort != 0 {
serverArgs = append(serverArgs, serverArgs = append(serverArgs,
"--prometheus-enable", "--prometheus-enable",