Add support for netlify (#12)

This commit is contained in:
AceDataCloud
2024-01-02 01:57:26 +08:00
parent e507a2d8c7
commit 60924379c0
3 changed files with 22 additions and 0 deletions
+6
View File
@@ -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)
## 开发配置
如果您想将源码部署为您自己的系统并进行赚钱,或者基于本系统进行二次开发,可参考下文。
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "add support for deployment of netlify",
"packageName": "@zhishuyun/hub",
"email": "cqc@cuiqingcai.com",
"dependentChangeType": "patch"
}
+9
View File
@@ -0,0 +1,9 @@
[build]
command = "vite build"
functions = "netlify/functions"
publish = "dist"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200