All checks were successful
Build and Deploy LSFE Frontend / build-and-deploy (push) Successful in 4m36s
35 lines
1.0 KiB
XML
35 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<!-- MIME types -->
|
|
<staticContent>
|
|
<remove fileExtension=".woff2" />
|
|
<mimeMap fileExtension=".woff2" mimeType="font/woff2" />
|
|
<remove fileExtension=".wasm" />
|
|
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
|
|
</staticContent>
|
|
|
|
<!-- React SPA routing -->
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="ReactRouter" stopProcessing="true">
|
|
<match url=".*" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
|
</conditions>
|
|
<action type="Rewrite" url="/index.html" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
|
|
<!-- Default document -->
|
|
<defaultDocument>
|
|
<files>
|
|
<clear />
|
|
<add value="index.html" />
|
|
</files>
|
|
</defaultDocument>
|
|
</system.webServer>
|
|
</configuration>
|