From a305838cc5bd131c677b9d1df86712a603d503fe Mon Sep 17 00:00:00 2001 From: "alpha2phi@gmail.com" Date: Mon, 30 Sep 2024 10:50:15 +0800 Subject: [PATCH] fix: build command --- .../azure-static-web-apps-gentle-bush-0a37d5800.yml | 3 ++- .gitignore | 3 +++ staticwebapp.config.json | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 staticwebapp.config.json diff --git a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml index f12a1d0..626c2a2 100644 --- a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml +++ b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml @@ -29,8 +29,9 @@ jobs: ###### 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: "/" # App source code path + app_build_command: "pnpm install && pnpm build" api_location: "" # Api source code path - optional - output_location: "build" # Built app content directory - optional + output_location: "dist" # Built app content directory - optional ###### End of Repository/Build Configurations ###### close_pull_request_job: diff --git a/.gitignore b/.gitignore index a547bf3..5928ded 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# TypeScript cache files +*.tsbuildinfo diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..4a1bb1f --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,5 @@ +{ + "navigationFallback": { + "rewrite": "/index.html" + } +} \ No newline at end of file