From 28148e4f6932093d2b7890b6ccbe3b5b073140ff Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sun, 15 Jun 2025 12:49:31 +0200 Subject: [PATCH] Allow for the web app to be run separately to allow debugging --- src/Vegasco-Web/.vscode/launch.json | 2 +- src/Vegasco-Web/.vscode/tasks.json | 2 +- src/Vegasco.Server.AppHost/Program.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Vegasco-Web/.vscode/launch.json b/src/Vegasco-Web/.vscode/launch.json index 925af83..8907192 100644 --- a/src/Vegasco-Web/.vscode/launch.json +++ b/src/Vegasco-Web/.vscode/launch.json @@ -7,7 +7,7 @@ "type": "chrome", "request": "launch", "preLaunchTask": "npm: start", - "url": "http://localhost:4200/" + "url": "http://localhost:44200/", }, { "name": "ng test", diff --git a/src/Vegasco-Web/.vscode/tasks.json b/src/Vegasco-Web/.vscode/tasks.json index ef8c754..91e9a1b 100644 --- a/src/Vegasco-Web/.vscode/tasks.json +++ b/src/Vegasco-Web/.vscode/tasks.json @@ -7,7 +7,7 @@ "script": "start", "options": { "env": { - "PORT": "4200", + "PORT": "44200", "services__Vegasco-Server-Api__https__0": "https://localhost:7098", "NODE_ENV": "development" } diff --git a/src/Vegasco.Server.AppHost/Program.cs b/src/Vegasco.Server.AppHost/Program.cs index a4365d9..8441f3e 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -16,7 +16,7 @@ builder .AddNpmApp("Vegasco-Web", "../Vegasco-Web") .WithReference(api) .WaitFor(api) - .WithHttpEndpoint(port: 44200, env: "PORT") + .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false) .WithExternalHttpEndpoints(); builder.Build().Run();