Skip to content

Commit c175159

Browse files
claude[bot]binggg
andauthored
feat: add console management page links to AI rules
Add console management page links for deployed resources: - Static hosting console link - Cloud function management with envId and functionName variables - Database collection management with envId and collectionName variables - Data model management with envId and modelName variables Resolves #40 Co-authored-by: Booker Zhao <binggg@users.noreply.github.com>
1 parent f6e341e commit c175159

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/.cursor/rules/cloudbase-rules.mdc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ for await (let str of res.textStream) {
136136
- 使用 manageDataModel 工具的 docs 方法获取具体 SDK 用法
137137
</cloudbase_knowledge>
138138

139+
<console_management>
140+
创建/部署资源后,提供对应的控制台管理页面链接:
141+
142+
1. 静态托管:https://console.cloud.tencent.com/tcb/hosting
143+
2. 云函数:https://tcb.cloud.tencent.com/dev?envId=${envId}#/scf/detail?id=${functionName}&NameSpace=${envId}
144+
3. 数据库集合:https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/doc/collection/${collectionName}
145+
4. 数据模型:https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/doc/model/${modelName}
146+
147+
使用方式:创建对应资源后,将变量替换为实际值,提供给用户进行管理操作。
148+
</console_management>
149+
139150
<cloudbase_db_notes>
140151
1. CloudBase数据库doc(id).get()返回的data是数组,需用data[0]获取文档内容
141152
2. 更新文档时,避免直接存储复杂对象,应提取和保存简单值

0 commit comments

Comments
 (0)