This commit is contained in:
idittrich-valueon 2025-05-07 11:09:20 +02:00
parent 080e5e16fa
commit 26b068f4ce
2 changed files with 23 additions and 0 deletions

View file

@ -28,6 +28,9 @@ jobs:
env: env:
CI: false # Verhindert, dass Warnungen den Build stoppen CI: false # Verhindert, dass Warnungen den Build stoppen
- name: Copy web.config to build folder
run: cp web.config build/
- name: 'Deploy to Azure Web App' - name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3 uses: azure/webapps-deploy@v3
with: with:

20
web.config Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" 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="/" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</configuration>