This commit is contained in:
Your Name
2026-04-16 23:00:25 +08:00
parent 0d8c0b4aed
commit 25d36c9d4b
6 changed files with 30 additions and 14 deletions

View File

@@ -165,6 +165,11 @@ git pull --ff-only origin main
- 但国外机的一键脚本内部会自动识别仓库属主
- 然后把前端构建切到仓库属主执行
- 这样可以避免把 `node_modules``dist`、源码目录权限烧成 `root`
- `/etc/default/domaincheck-api` 里的 `CORS_ORIGINS` 必须使用 JSON 数组格式
- 正确示例:
- `CORS_ORIGINS='["https://admin.domain","http://127.0.0.1:3201","http://localhost:3201"]'`
- 不能写成逗号拼接字符串:
- `CORS_ORIGINS=https://admin.domain,http://127.0.0.1:3201,http://localhost:3201`
最稳的执行方式: