From 85bd738749a00e231665db4d12efb40ff2e549e2 Mon Sep 17 00:00:00 2001 From: Ammar Qaffaf Date: Sun, 25 Aug 2024 13:14:42 +0300 Subject: [PATCH] add nav failback --- .../azure-static-web-apps-zealous-mushroom-0d31a3303.yml | 4 ++-- staticwebapp.config.json | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 staticwebapp.config.json diff --git a/.github/workflows/azure-static-web-apps-zealous-mushroom-0d31a3303.yml b/.github/workflows/azure-static-web-apps-zealous-mushroom-0d31a3303.yml index 1eb67be7..180cbbfd 100644 --- a/.github/workflows/azure-static-web-apps-zealous-mushroom-0d31a3303.yml +++ b/.github/workflows/azure-static-web-apps-zealous-mushroom-0d31a3303.yml @@ -28,9 +28,9 @@ jobs: action: "upload" ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/web" # App source code path + app_location: "/" # App source code path api_location: "" # Api source code path - optional - output_location: "/web/build" # Built app content directory - optional + output_location: "/web" # Built app content directory - optional ###### End of Repository/Build Configurations ###### close_pull_request_job: diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 00000000..9d62611d --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,5 @@ +{ + "navigationFallback": { + "rewrite": "/index.html" + } +} \ No newline at end of file