ソースを参照

Reverted base href to '/'

Tim Jones 1 ヶ月 前
コミット
ae0cba4fc1

+ 5 - 0
.github/workflows/publish-demo.yml

@@ -33,6 +33,11 @@ jobs:
       - name: Publish Blazor WASM
         run: dotnet publish ./RackPeek.Web.Viewer/RackPeek.Web.Viewer.csproj -c Release -o publish
 
+      - name: Fix base href for GitHub Pages
+        run: |
+          sed -i 's|<base href="/" />|<base href="/RackPeek/" />|g' publish/wwwroot/index.html
+
+
       # Optional but recommended for GitHub Pages routing
       - name: Add SPA fallback
         run: cp publish/wwwroot/index.html publish/wwwroot/404.html

+ 1 - 1
RackPeek.Web.Viewer/wwwroot/index.html

@@ -5,7 +5,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>RackPeek.Web.Viewer</title>
-    <base href="/RackPeek/" />
+    <base href="/" />
     <link rel="preload" id="webassembly" />
     <link rel="icon" type="image/png" href="favicon.png" />
     <script src="tailwind.js"></script>