Add support for netlify (#12)
This commit is contained in:
@@ -30,8 +30,14 @@ AI 问答:
|
||||
|
||||
## 部署
|
||||
|
||||
一键部署到 Vercel:
|
||||
|
||||
[](https://vercel.com/import/project?template=https://github.com/ZhiShuYun/HubFrontend)
|
||||
|
||||
一键部署到 Netlify:
|
||||
|
||||
[](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"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
[build]
|
||||
command = "vite build"
|
||||
functions = "netlify/functions"
|
||||
publish = "dist"
|
||||
|
||||
[[redirects]]
|
||||
from = "/*"
|
||||
to = "/index.html"
|
||||
status = 200
|
||||
Reference in New Issue
Block a user