test3
This commit is contained in:
parent
080e5e16fa
commit
26b068f4ce
2 changed files with 23 additions and 0 deletions
3
.github/workflows/main_poweron-nyla.yml
vendored
3
.github/workflows/main_poweron-nyla.yml
vendored
|
|
@ -28,6 +28,9 @@ jobs:
|
|||
env:
|
||||
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'
|
||||
uses: azure/webapps-deploy@v3
|
||||
with:
|
||||
|
|
|
|||
20
web.config
Normal file
20
web.config
Normal 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>
|
||||
Loading…
Reference in a new issue