Skip to content

Commit 8f7433e

Browse files
committed
fix(dd): ddd
1 parent 68270b3 commit 8f7433e

File tree

1 file changed

+11
-11
lines changed
  • TestHostPrerenderWASM/TestHostPrerenderWASM.Client

1 file changed

+11
-11
lines changed

TestHostPrerenderWASM/TestHostPrerenderWASM.Client/Program.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77

88
//Be careful we have two entry points to enable the client to be both a standalone app and the client for the server app.
99
// removing the below, app.razor, and index.html would put the project back to being just for the testing host (WebAssembly.DevServer could be removed from nuget too)
10-
//if (builder.HostEnvironment.IsProduction()) //qqqq worked but want release mode not to be tied to this
11-
//{
12-
// builder.RootComponents.Add<App>("#app");
13-
// builder.RootComponents.Add<HeadOutlet>("head::after");
14-
// builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
10+
if (builder.HostEnvironment.IsProduction()) //qqqq worked but want release mode not to be tied to this
11+
{
12+
builder.RootComponents.Add<App>("#app");
13+
builder.RootComponents.Add<HeadOutlet>("head::after");
14+
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1515

16-
//}
17-
#if GH_PAGE_RELEASE
18-
builder.RootComponents.Add<App>("#app");
19-
builder.RootComponents.Add<HeadOutlet>("head::after");
20-
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
21-
#endif
16+
}
17+
//#if GH_PAGE_RELEASE //put something like this back in
18+
//builder.RootComponents.Add<App>("#app");
19+
//builder.RootComponents.Add<HeadOutlet>("head::after");
20+
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
21+
//#endif
2222
//qqqqqq this is where it will be failing
2323
await builder.Build().RunAsync();
2424

0 commit comments

Comments
 (0)