Skip to content

Commit 2ec4a56

Browse files
committed
fix(provide custom flag not release): tryit
1 parent 3cf657c commit 2ec4a56

File tree

4 files changed

+32
-16
lines changed

4 files changed

+32
-16
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ jobs:
420420
421421
422422
- name: Publish client using client release .csproj logic
423+
env:
424+
INDEPENDANT_CLIENT_GH_PAGES: true
423425
run: |
424426
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
425427
/p:BCLVersion=$BCL_VERSION \

TestHostPrerenderWASM/TestHostPrerenderWASM.Client/Program.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1515

1616
}
17+
18+
if (Environment.GetEnvironmentVariable("INDEPENDANT_CLIENT_GH_PAGES") != null)
19+
{
20+
builder.RootComponents.Add<App>("#app");
21+
builder.RootComponents.Add<HeadOutlet>("head::after");
22+
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
23+
}
24+
1725
//#if GH_PAGE_RELEASE //put something like this back in
1826
//builder.RootComponents.Add<App>("#app");
1927
//builder.RootComponents.Add<HeadOutlet>("head::after");

TestHostPrerenderWASM/TestHostPrerenderWASM.Client/packages.lock.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,7 @@
245245
"type": "Project",
246246
"dependencies": {
247247
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
248-
"TELBlazorComponentLibrary.GitPageBlazorWasm": "[10.9.4, )"
249-
}
250-
},
251-
"TELBlazorComponentLibrary.GitPageBlazorWasm": {
252-
"type": "Project",
253-
"dependencies": {
254-
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
255-
"Microsoft.Extensions.Http": "[8.0.0, )"
248+
"TELBlazorComponentLibrary.GitPageBlazorWasm": "[10.9.7, )"
256249
}
257250
},
258251
"Microsoft.AspNetCore.Components.Web": {
@@ -282,6 +275,16 @@
282275
"Microsoft.Extensions.Logging.Abstractions": "8.0.0",
283276
"Microsoft.Extensions.Options": "8.0.0"
284277
}
278+
},
279+
"TELBlazorComponentLibrary.GitPageBlazorWasm": {
280+
"type": "CentralTransitive",
281+
"requested": "[10.9.7, )",
282+
"resolved": "10.9.7",
283+
"contentHash": "+dWmXBnL84HBWfTGiYZOxK8UGITQHbp4IO6bso+naGa9IxYNjcsOCjY/uczQmBfUPsuCZS/BKLq8Aznm5+Q4iA==",
284+
"dependencies": {
285+
"Microsoft.AspNetCore.Components.Web": "8.0.14",
286+
"Microsoft.Extensions.Http": "8.0.0"
287+
}
285288
}
286289
},
287290
"net8.0/browser-wasm": {}

TestHostPrerenderWASM/TestHostPrerenderWASM/packages.lock.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,7 @@
220220
"type": "Project",
221221
"dependencies": {
222222
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
223-
"TELBlazorComponentLibrary.GitPageBlazorWasm": "[10.9.4, )"
224-
}
225-
},
226-
"TELBlazorComponentLibrary.GitPageBlazorWasm": {
227-
"type": "Project",
228-
"dependencies": {
229-
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
230-
"Microsoft.Extensions.Http": "[8.0.0, )"
223+
"TELBlazorComponentLibrary.GitPageBlazorWasm": "[10.9.7, )"
231224
}
232225
},
233226
"testhostprerenderwasm.client": {
@@ -284,6 +277,16 @@
284277
"Microsoft.Extensions.Logging.Abstractions": "8.0.0",
285278
"Microsoft.Extensions.Options": "8.0.0"
286279
}
280+
},
281+
"TELBlazorComponentLibrary.GitPageBlazorWasm": {
282+
"type": "CentralTransitive",
283+
"requested": "[10.9.7, )",
284+
"resolved": "10.9.7",
285+
"contentHash": "+dWmXBnL84HBWfTGiYZOxK8UGITQHbp4IO6bso+naGa9IxYNjcsOCjY/uczQmBfUPsuCZS/BKLq8Aznm5+Q4iA==",
286+
"dependencies": {
287+
"Microsoft.AspNetCore.Components.Web": "8.0.14",
288+
"Microsoft.Extensions.Http": "8.0.0"
289+
}
287290
}
288291
}
289292
}

0 commit comments

Comments
 (0)