Fix startup programs for deployment (#29)
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m28s
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m28s
Co-authored-by: Maxime Adler <madler@sqli.com> Reviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
@@ -16,10 +16,15 @@ var services = builder.Services;
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
#if DEBUG
|
||||
UriBuilder uriBuilder = new(builder.HostEnvironment.BaseAddress)
|
||||
{
|
||||
Port = 8000
|
||||
};
|
||||
#else
|
||||
UriBuilder uriBuilder = new(Environment.GetEnvironmentVariable("API_URL")
|
||||
?? throw new ArgumentNullException("API_URL", "Environment variable API_URL is missing"));
|
||||
#endif
|
||||
|
||||
services.AddHttpClient(
|
||||
"GameIdeas.WebAPI",
|
||||
|
||||
Reference in New Issue
Block a user