Skip to content

Commit

Permalink
Add support for netlify (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
AceDataCloud committed Jan 1, 2024
1 parent e507a2d commit 6092437
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## 开发配置

如果您想将源码部署为您自己的系统并进行赚钱,或者基于本系统进行二次开发,可参考下文。
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "add support for deployment of netlify",
"packageName": "@zhishuyun/hub",
"email": "cqc@cuiqingcai.com",
"dependentChangeType": "patch"
}
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
command = "vite build"
functions = "netlify/functions"
publish = "dist"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit 6092437

Please sign in to comment.