deploy to root user
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 37s
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 37s
This commit is contained in:
@@ -16,14 +16,12 @@ var services = builder.Services;
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
UriBuilder uriBuilder = new(builder.HostEnvironment.BaseAddress);
|
||||
|
||||
#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"));
|
||||
uriBuilder.Port = 8000;
|
||||
}
|
||||
#endif
|
||||
|
||||
services.AddHttpClient(
|
||||
|
||||
Reference in New Issue
Block a user