Fix port binding (#31)
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m47s

Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
2025-04-28 21:06:37 +02:00
parent c12e31dfeb
commit 4c1c918bd6
3 changed files with 11 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ using GameIdeas.BlazorApp.Pages.UserMenu.Gateways;
using GameIdeas.BlazorApp.Pages.Users.Gateways;
using GameIdeas.BlazorApp.Services;
using GameIdeas.Resources;
using GameIdeas.Shared.Constants;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
@@ -19,9 +20,9 @@ builder.RootComponents.Add<HeadOutlet>("head::after");
UriBuilder uriBuilder = new(builder.HostEnvironment.BaseAddress);
#if DEBUG
{
uriBuilder.Port = 8000;
}
uriBuilder.Port = GlobalConstants.API_PORT;
#else
uriBuilder.Host = GlobalConstants.SUB_DOMAIN_NAME + uriBuilder.Host;
#endif
services.AddHttpClient(