This repository has been archived on 2026-10-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
snowy-yang 8803444755 feat: 后端接线上 React 构建产物,legacy 模板降级为兜底
为什么:前端迁移到 Vite 后,首页应直接返回 frontend/dist/index.html
字节(golden 口径随之变为构建产物原样字节),仅当 dist 未构建时
回退 Jinja2 渲染的 legacy 模板。同步挂载 /assets 静态目录、排除
frontend 的 node_modules/tsbuildinfo 入库、docker 构建只带 dist
不带源码、ruff/pyright 排除 frontend 目录(TS 侧由 tsc+vite 把关)。
2026-09-27 18:35:04 +08:00

42 lines
990 B
Plaintext

.idea
.vscode
venv
.venv
__pycache__
*.pyc
*.pyo
*.pyd
# 工具缓存与本地工作目录——不进版本库,也不该进分发包
# (.pytest_cache/.ruff_cache 此前漏配:跑一次测试就会在 git status 里冒出来,
# 一旦有人习惯性 `git add -A` 就会被提交)
.pytest_cache/
.ruff_cache/
.pyright/
.workbuddy/
# _mkpkg.py 会在项目根写入打包标记文件(内容为文件数/体积或 public 标记)
_pkg_ok.txt
# 前端工程:node_modules 不进库;dist 构建产物必须提交(后端直接服务它,
# Docker COPY . . 无需 node 即可工作)
frontend/node_modules/
frontend/*.tsbuildinfo
# 运行时敏感数据与私有文档——公开包买家若将本项目纳入 git 管理,
# 以下内容绝不能进版本库(用户数据库/网易云 Cookie/日志/审计文档)
data/
cookie.txt
cookie.*.txt
user_cookie.txt
user_cookie.*.txt
downloads/
*.log
music_api.log*
_audit_work/
.zcode/
.env
云村小助手-网站开关.bat