aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/azure-static-web-apps-orange-glacier-064358d03.yml14
-rw-r--r--staticwebapp.config.json5
-rw-r--r--swa-cli.config.json4
3 files changed, 8 insertions, 15 deletions
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"
}
}