Skip to content

Commit

Permalink
fixed issue with presentation dockerfile not working. make sure appse…
Browse files Browse the repository at this point in the history
…ttings.Production.json exists on disk even when its dynamically generated
  • Loading branch information
m-GDEV committed Dec 3, 2024
1 parent 59b8e9f commit 675368f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3,526 deletions.
3 changes: 2 additions & 1 deletion WardrobeManager.Presentation/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

var builder = WebAssemblyHostBuilder.CreateDefault(args);

// Blazor WASM apps cannot read environment variables as they are not executed on the server
// Configuration is setup by default to read from (in order of precedence) Environment Variables, appsettings.json
// https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
string BackendUrl = builder.Configuration["WM_BACKEND_URL"] ?? throw new Exception("BackendUrl: configuration value not set");
string BackendUrl = builder.Configuration["WM_BACKEND_URL"] ?? throw new Exception("WM_BACKEND_URL: configuration value not set");

Console.WriteLine("Hello man" + BackendUrl);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"WM_BACKEND_URL": "https://localhost:7026"
}
Loading

0 comments on commit 675368f

Please sign in to comment.