Go to file
sp mac bookpro 2605 b1df40e983 fix: 用户消息靠右对齐 - 移除flex: 1让内容自适应宽度 2026-06-08 01:09:57 +08:00
.npm-cache/_cacache .. 2026-06-05 23:10:15 +08:00
docs .. 2026-06-05 23:10:15 +08:00
src fix: 用户消息靠右对齐 - 移除flex: 1让内容自适应宽度 2026-06-08 01:09:57 +08:00
.env.example chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
.gitignore refactor: split AgentEditor into module files; remove redundant local images 2026-06-01 13:07:10 +08:00
Dockerfile chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
README.md docs: add release steps 2026-05-29 23:52:41 +08:00
docker-compose.yml chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
index.html fix(auth): keep mock login and update title 2026-05-24 17:37:45 +08:00
nginx.conf chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
package-lock.json .. 2026-06-05 23:10:15 +08:00
package.json .. 2026-06-05 23:10:15 +08:00
tsconfig.json chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
vite.config.ts fix(router): support /aura basename deployment 2026-05-28 16:17:27 +08:00

README.md

aura-web

Aura Agent Platform 前端项目React + Vite + TypeScript

rh-agent-platform/web/ 拆分独立而来。后端代码现位于平级项目 aura-server

本地开发

npm install
npm run dev          # http://localhost:5173

默认 /api 代理到 http://localhost:4001(即 aura-server 的 Go 服务)。 如需切换:

VITE_API_TARGET=http://localhost:4000 npm run dev

构建

npm run build        # 产物输出至 dist/
npm run preview      # 本地预览

发布

1、本地执行

npm run build

2、本地执行上传 dist 到服务器):

rsync -avz --delete dist/ root@156.230.62.22:/var/www/aura-web/

Docker

cp .env.example .env
docker compose up -d --build
# 浏览器访问 http://localhost:8080

目录结构

src/
├── components/   公共组件
├── pages/        路由页面
├── store/        Zustand 状态
├── api.ts        REST/SSE 客户端
└── main.tsx      入口