nomadro/.cursor/rules/com-first-deploy.mdc
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

42 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: .com 美国机为开发发版核心;.cn 独立同步;Taro→三端小程序链路
alwaysApply: true
---
# 核心机与发版顺序(强制)
## 一句话
**本仓开发与默认发版核心是 `nomadro.com`(美国 VPS),不是 `.cn`。**
## 双站关系
| 站 | 机 | 角色 |
|---|---|---|
| **`.com`** | 美国 VPS(如 `108.174.50.68`) | **主开发 / 默认部署目标** |
| **`.cn`** | 中国机 `82.157.112.245` | 独立生产;**仅在 .com 中文轨测稳后**再同步 |
- `.com` 内分 **中文用户 / 国际用户**(`src/modules/audience/{cn,intl}`,`resolveAudienceBundle()`)。
- `.com` 中文用户体验测好 → 再同步到 `.cn` 与中国服务器。
- **`.com` 中文轨与 `.cn` 服务器彼此独立**(库、配置、进程、发版互不顶替)。禁止「只发 82 就当 .com 已上线」。
- 用户说「部署上线」且未点名域名 → **默认发 `.com` / 美国机**;发 `.cn` 必须明确说 `.cn` / 中国机 / 82。
## 产品复制链(中国三端)
```
.com(Next · 受众 cn/intl)
└─ 中文轨测稳 → 同步 .cn(Next · 中国机,独立)
└─ Taro H5(apps/miniprogram/h5)对齐 .cn 体验
└─ Taro 多端编译 → 微信 / 抖音 / 小红书
```
- **微信小程序**是中国核心;抖音、小红书跟 Taro H5 SoT。
- 小程序 **禁止 web-view** 承载业务(见 `no-webview-content.mdc`)。
- `.com` 树 `apps/com/*` **无小程序**;小程序只走 `apps/miniprogram/*`。
## 反模式
- 默认 `deploy_*_82.py` / 只冒烟 `nomadro.cn` 却对用户说「已上线」
- 把 `.cn` 当主站、把 `.com` 当镜像
- 用 UI locale 代替受众轨;或假定 `.com` 中文与 `.cn` 共享同一后端