diff --git a/README.md b/README.md index 9728235a..10ca3393 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,14 @@ AI 问答: ## 部署 +一键部署到 Vercel: + [![Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/ZhiShuYun/HubFrontend) +一键部署到 Netlify: + +[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/ZhiShuYun/HubFrontend) + ## 开发配置 如果您想将源码部署为您自己的系统并进行赚钱,或者基于本系统进行二次开发,可参考下文。 diff --git a/change/@zhishuyun-hub-f3cdb36e-38ce-4dfd-9db4-76d10b126eaa.json b/change/@zhishuyun-hub-f3cdb36e-38ce-4dfd-9db4-76d10b126eaa.json new file mode 100644 index 00000000..38e98902 --- /dev/null +++ b/change/@zhishuyun-hub-f3cdb36e-38ce-4dfd-9db4-76d10b126eaa.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "add support for deployment of netlify", + "packageName": "@zhishuyun/hub", + "email": "cqc@cuiqingcai.com", + "dependentChangeType": "patch" +} diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..b505b3e8 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,9 @@ +[build] + command = "vite build" + functions = "netlify/functions" + publish = "dist" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file