From 2049aef9e8dbf7c90e8f200b65bb6857b9afbab4 Mon Sep 17 00:00:00 2001 From: idittrich-valueon Date: Wed, 7 May 2025 11:13:57 +0200 Subject: [PATCH] test4 --- .github/workflows/main_poweron-nyla.yml | 4 ++-- staticwebapp.config.json | 9 +++++++++ web.config | 20 -------------------- 3 files changed, 11 insertions(+), 22 deletions(-) create mode 100644 staticwebapp.config.json delete mode 100644 web.config 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