From 34b8d9f8f14143d5a8842453570dc9e85224eb23 Mon Sep 17 00:00:00 2001 From: master1lan <278457198@qq.com> Date: Wed, 25 Jan 2023 13:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E4=B8=BAht?= =?UTF-8?q?tp=E8=BF=9E=E6=8E=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- index.html | 1 + public/staticwebapp.config.json | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 public/staticwebapp.config.json diff --git a/.gitignore b/.gitignore index e59eaab..c0fbe82 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ node_modules dist dist-ssr *.local -pnpm-lock.yaml + # Editor directories and files .vscode/* !.vscode/extensions.json diff --git a/index.html b/index.html index 312c597..776bc55 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ + diff --git a/public/staticwebapp.config.json b/public/staticwebapp.config.json new file mode 100644 index 0000000..89219cd --- /dev/null +++ b/public/staticwebapp.config.json @@ -0,0 +1,9 @@ +{ + "navigationFallback": { + "rewrite": "index.html", + "exclude": ["/assets/*"] + }, + "mimeTypes": { + ".json": "text/json" + } +}