fix: add BackendPort configuration to support dynamic backend port setting
Some checks failed
Build and Deploy to Production / deploy (push) Has been cancelled

This commit is contained in:
2025-10-30 00:11:07 -03:00
parent f37142903a
commit d8feffe9f4
2 changed files with 3 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ using System.Net;
var builder = WebApplication.CreateBuilder(args);
if (builder.Configuration["BACKEND_PORT"] is { Length: > 0 } port && ushort.TryParse(port, out _))
if (builder.Configuration["BackendPort"] is { Length: > 0 } port && ushort.TryParse(port, out _))
{
builder.WebHost.UseUrls($"http://0.0.0.0:{port}");
}