From 780aeaa93f458a399ecad771dd6ff7b7569bd2ff Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Sun, 25 Aug 2024 23:53:08 +0200 Subject: multiple --- .../azure-static-web-apps-orange-glacier-064358d03.yml | 14 +------------- staticwebapp.config.json | 5 +++++ swa-cli.config.json | 4 ++-- 3 files changed, 8 insertions(+), 15 deletions(-) create mode 100644 staticwebapp.config.json diff --git a/.github/workflows/azure-static-web-apps-orange-glacier-064358d03.yml b/.github/workflows/azure-static-web-apps-orange-glacier-064358d03.yml index d194e65..8a26af3 100644 --- a/.github/workflows/azure-static-web-apps-orange-glacier-064358d03.yml +++ b/.github/workflows/azure-static-web-apps-orange-glacier-064358d03.yml @@ -31,16 +31,4 @@ jobs: action: "upload" app_location: "/" # App source code path api_location: "./Backend" # Api source code path - optional - output_location: "dist" # Built app content directory - optional - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_GLACIER_064358D03 }} - action: "close" + output_location: "dist" # Built app content directory - optional \ No newline at end of file diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..d3c815b --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,5 @@ +{ + "navigationFallback": { + "rewrite": "/index.html" + } +} diff --git a/swa-cli.config.json b/swa-cli.config.json index 809aa6d..5f8a3ac 100644 --- a/swa-cli.config.json +++ b/swa-cli.config.json @@ -7,9 +7,9 @@ "outputLocation": "dist", "apiLanguage": "dotnetisolated", "apiVersion": "8.0", - "appBuildCommand": "yarn build", + "appBuildCommand": "npm run build", "apiBuildCommand": "dotnet publish -c Release", - "run": "yarn dev", + "run": "npm run dev", "appDevserverUrl": "http://localhost:5173" } } -- cgit v1.3