Skip to content

Commit

Permalink
try again to free the manifest from the stronghold which is iis
Browse files Browse the repository at this point in the history
  • Loading branch information
SjoenH committed May 7, 2024
1 parent 6ed0e8a commit 7564037
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion kabinizer-front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
rel="stylesheet"
/>
<meta name="theme-color" content="#F1F2F5;" />
<link rel="manifest" href="/site.manifest.json">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
Expand Down
File renamed without changes.
20 changes: 5 additions & 15 deletions kabinizer-front-end/public/web.config
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<!-- Exclude known static files from rewrite -->
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<!-- Exclude JSON and other specific static resources from rewrite -->
<add input="{REQUEST_URI}" pattern="\.json$" negate="true" />
<add input="{REQUEST_URI}" pattern="\.ico$" negate="true" />
<add input="{REQUEST_URI}" pattern="\.png$" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
<rule name="Manifest" stopProcessing="true">
<match url="manifest.json" />
<action type="Rewrite" url="/public/manifest.json" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".png" mimeType="image/png" />
<mimeMap fileExtension=".jpg" mimeType="image/jpeg" />
<mimeMap fileExtension=".jpeg" mimeType="image/jpeg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".ico" mimeType="image/x-icon" />
</staticContent>
</system.webServer>
</configuration>
</configuration>

0 comments on commit 7564037

Please sign in to comment.