Skip to content

Commit ebcf4ee

Browse files
committed
Potential fix static site
1 parent 1508534 commit ebcf4ee

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Treat Blazor framework files as binary to prevent line ending normalization (CRLF -> LF)
2+
# which breaks subresource integrity (SRI) hashes.
3+
_framework/** binary
4+
*.wasm binary
5+
*.dll binary
6+
*.pdb binary
7+
*.js binary

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
dotnet-version: '10.0.x'
4646

4747
- name: Publish app
48-
run: dotnet publish Demo/ExpireStorage.Demo -c Release
48+
run: dotnet publish Demo/ExpireStorage.Demo -c Release /p:BlazorEnableCompression=false
4949

5050
- name: Rewrite base href
5151
uses: SteveSandersonMS/ghaction-rewrite-base-href@5b54862a8831e012d4f1a8b2660894415fdde8ec # v1.1.0

Drogecode.Blazor.ExpireStorage.slnx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<Folder Name="/Demo/">
33
<Project Path="Demo/ExpireStorage.Demo/ExpireStorage.Demo.csproj" />
44
</Folder>
5+
<Folder Name="/SolutionFiles/">
6+
<File Path=".github/workflows/on-push.yml" />
7+
<File Path=".github/workflows/static.yml" />
8+
</Folder>
59
<Project Path="Src/Drogecode.Blazor.ExpireStorage/Drogecode.Blazor.ExpireStorage.csproj" />
610
<Project Path="Tests/Drogecode.Blazor.ExpireStorage.Tests/Drogecode.Blazor.ExpireStorage.Tests.csproj" />
711
</Solution>

0 commit comments

Comments
 (0)