nomadro/.cursor/rules/local-frontend-online-backend.mdc

17 lines
732 B
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 后端(禁止默认 127.0.0.1:802x)
alwaysApply: true
---
# 本地前端直连线上后端(写死)
**本地前端直连线上后端。**
- `pnpm dev` / localhost:`WORK_API_URL` / `NOTIFY_API_URL` / `COFFEE_API_URL` / `API_URL` 默认 **`https://nomadro.com`**
- 禁止默认 `127.0.0.1:8021/8023/8024`;本机后端仅在用户本轮明确要求联调时使用
- 细节见 `.cursor/skills/local-frontend-online-backend/SKILL.md`
## 独立 Taro 预览例外(用户明确授权)
`apps/taro/web` 只连接自己的 `apps/taro/api`(本地 `127.0.0.1:10089`),后台为 `apps/taro/admin`。禁止生产 API 兜底;上文线上默认仅约束 Next 门户。