前端主题
部署 Yun 主题

Yun 主题

⚠️

由于 Yun 主题将不再维护,此文档将不再更新,但是你仍然可以使用它。

克隆项目

git clone https://github.com/mx-space/mx-web-yun.git --depth=1

安装依赖

pnpm i

配置服务

如果你部署 Mix Space 后端与部署 Yun 前端在同一台服务器,并且后端监听的端口为 2333,那么你可以跳过这一步。

  1. 前往 ./server/constant.ts
./server/constant.ts
export const isProduction = process.env.NODE_ENV === 'production'
export const isDev = !isProduction
export const apiBase = isDev
  ? 'https://api.innei.ren/v2/'
  : 'http://localhost:2333/api/v2/'

修改为你的后端 API 地址。

开始构建

pnpm build

启动前端

pnpm pm2