diff --git a/.github/workflows/main_poweron-nyla.yml b/.github/workflows/main_poweron-nyla.yml index ac1c195..08539a6 100644 --- a/.github/workflows/main_poweron-nyla.yml +++ b/.github/workflows/main_poweron-nyla.yml @@ -28,8 +28,8 @@ jobs: env: CI: false # Verhindert, dass Warnungen den Build stoppen - - name: Copy web.config to build folder - run: cp web.config build/ + - name: Copy config to build folder + run: cp staticwebapp.config.json build/ - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..87325d4 --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,9 @@ +{ + "navigationFallback": { + "rewrite": "/index.html", + "exclude": ["/static/*", "/images/*", "/*.{png,jpg,gif,ico,json}"] + }, + "mimeTypes": { + ".json": "text/json" + } +} \ No newline at end of file diff --git a/web.config b/web.config deleted file mode 100644 index 7b9baf8..0000000 --- a/web.config +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file