Skip to content

Commit 0e643a9

Browse files
committed
fix(not getting val): try direct passing
1 parent 8be2043 commit 0e643a9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,13 @@ jobs:
424424
INDEPENDENT_CLIENT_GH_PAGES: true
425425
run: |
426426
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
427+
/p:INDEPENDENT_CLIENT_GH_PAGES=true \
427428
/p:BCLVersion=$BCL_VERSION \
428429
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
429430
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
430431
/p:GhPageRelease=true \
431432
/p:LocalPackagePath=$BCL_Source
433+
432434
433435
- name: Debug - List all files in docs folder
434436
run: |

TestHostPrerenderWASM/TestHostPrerenderWASM.Client/Program.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77

88

99

10+
Console.WriteLine($"INDEPENDENT_CLIENT_GH_PAGES value: '{Environment.GetEnvironmentVariable("INDEPENDENT_CLIENT_GH_PAGES")}'");
11+
1012
if (Environment.GetEnvironmentVariable("INDEPENDENT_CLIENT_GH_PAGES") != null)
1113
{
14+
Console.WriteLine("Condition is TRUE - Adding root components");
1215
builder.RootComponents.Add<App>("#app");
1316
builder.RootComponents.Add<HeadOutlet>("head::after");
1417
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1518
}
19+
else
20+
{
21+
Console.WriteLine("Condition is FALSE - Environment variable is null");
22+
}
1623

1724

1825
await builder.Build().RunAsync();

0 commit comments

Comments
 (0)