Skip to content

Commit d95bdf5

Browse files
authored
docs: update App Builder import and billing usage (#156)
1 parent 6f74070 commit d95bdf5

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

en/basic/ai/app-builder.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ If the app uses custom environment variables, the downloaded archive can include
6666
You can update the app's code by importing a ZIP:
6767
1. Switch to the **Code** tab in the editor.
6868
2. Click the **`...`** menu in the tab bar.
69-
3. Select **Import code** and choose a ZIP file (≤ 5 MB) containing your source files.
69+
3. Select **Import code** and choose a ZIP file up to 20 MB.
7070

7171
<Note>
72-
- Include source files only — do not include `node_modules`, `.next`, or other build artifacts.
73-
- Zip the outermost project folder itself (right-click the folder → compress), not files selected from inside it.
74-
- If you import only one file from a nested folder, include one unchanged source file from another top-level folder as a path anchor. For example, include both `app/page.tsx` and `components/widgets/chart.tsx` so the component keeps its full `components/widgets/...` path.
75-
- Import merges with the existing project and overwrites any files that share the same path.
72+
- Include source files only. `node_modules`, `.next`, and other build artifacts are ignored automatically.
73+
- The ZIP replaces the existing project. Files you leave out are removed from the new version.
74+
- If the ZIP contains one wrapper folder, Teable strips that folder. You can compress the outermost project folder directly.
75+
- The imported project must include `package.json` at the project root.
7676
- A root `.env` file in the ZIP is read into the app's **Secrets**. Other `.env*` variants, such as `.env.local`, are ignored.
7777
</Note>
7878

@@ -189,7 +189,7 @@ For prompt patterns, build tips, rollback advice, and common troubleshooting, se
189189
</Accordion>
190190

191191
<Accordion title="How do I download or import app code?">
192-
Switch to the **Code** tab in the editor, click the **`...`** menu in the tab bar, then choose **Download code** or **Import code**. When importing a ZIP, include source files only. Do not include `node_modules`, `.next`, or other build artifacts. A root `.env` file is imported into app **Secrets**.
192+
Switch to the **Code** tab in the editor, click the **`...`** menu in the tab bar, then choose **Download code** or **Import code**. Imported ZIP files can be up to 20 MB and replace the existing project, so include every source file you want to keep. The imported project must include a root `package.json`. A root `.env` file is imported into app **Secrets**.
193193
</Accordion>
194194

195195
<Accordion title="When do login settings apply to the live app?">

en/basic/space/billing.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Monitor your space's resource consumption with these metrics:
4848

4949
<Tip>Data in both space trash and base trash are counted in the total record statistics. To reduce the total record count, clean up data in "Space → Trash" or "Base → Trash".</Tip>
5050

51+
Click **Details** on the **Total records** card to view record usage by Base. The dialog shows active records, trash records, and total records for each Base. You can open a Base trash page from the dialog, or permanently delete a Base that is already in trash.
52+
5153
### Credits
5254

5355
Credits are Teable's usage units for AI-powered features. They allow you to track and manage AI usage in a transparent way. Credits reset every billing period and don't roll over.

zh/basic/ai/app-builder.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Teable 应用构建器 (App Builder) 允许您在不编写代码的情况下,
6868

6969
1. 切换到编辑器中的 **Code** 标签页。
7070
2. 点击标签栏中的 **`...`** 菜单。
71-
3. 选择 **导入代码** ,导入 ZIP(≤ 5MB)来更新代码
71+
3. 选择 **导入代码**,导入不超过 20 MB 的 ZIP
7272

7373
<Note>
74-
- 仅需包含源代码文件,请勿包含 `node_modules``.next` 等构建产物
75-
- 请压缩最外层项目文件夹本身(右键文件夹 → 压缩),而非进入文件夹内部选中文件再压缩
76-
- 如果只导入嵌套文件夹里的一个文件,请同时放入另一个顶层目录下、内容未修改的源码文件作为路径锚点。例如同时包含 `app/page.tsx``components/widgets/chart.tsx`,这样组件文件会保留完整的 `components/widgets/...` 路径
77-
- 导入会合并并覆盖同名文件
74+
- 仅需包含源代码文件,`node_modules``.next` 等构建产物会被自动忽略
75+
- ZIP 会替换现有项目。未放入 ZIP 的现有文件,会从新版本中移除
76+
- 如果 ZIP 中包含一个公共外层文件夹,Teable 会自动剥离这一层。你可以直接压缩最外层项目文件夹
77+
- 导入的项目根目录必须包含 `package.json`
7878
- ZIP 根目录中的 `.env` 会导入应用的 **密钥管理**。其他 `.env*` 变体(如 `.env.local`)会被忽略。
7979
</Note>
8080

@@ -204,7 +204,7 @@ Teable 自动跟踪每一次部署。
204204
</Accordion>
205205

206206
<Accordion title="如何下载或导入应用代码?">
207-
切换到编辑器中的 **Code** 标签页,点击标签栏中的 **`...`** 菜单,然后选择 **下载代码****导入代码**导入 ZIP 时,请只包含源代码文件,不要包含 `node_modules``.next` 等构建产物。ZIP 根目录中的 `.env` 文件会导入应用的 **密钥管理**
207+
切换到编辑器中的 **Code** 标签页,点击标签栏中的 **`...`** 菜单,然后选择 **下载代码****导入代码**导入的 ZIP 最大 20 MB,且会替换现有项目,因此请放入需要保留的全部源代码文件。导入的项目根目录必须包含 `package.json`。ZIP 根目录中的 `.env` 文件会导入应用的 **密钥管理**
208208
</Accordion>
209209

210210
<Accordion title="登录配置什么时候会对线上应用生效?">

zh/basic/space/billing.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ description: "了解如何管理订阅、查看账单详情、监控用量以及
4848

4949
<Tip>空间回收站和数据库回收站中的数据也会计入记录总数统计。如需减少记录总数,请清理「空间 → 回收站」或「数据库 → 回收站」中的数据。</Tip>
5050

51+
**记录总数** 卡片中点击**详情**,可以按数据库查看记录用量。详情弹窗会展示每个数据库的活跃记录、回收站记录和总记录数。你也可以从弹窗前往数据库回收站,或彻底删除已经在回收站中的数据库。
52+
5153
### 算力
5254

5355
算力是 Teable 用于 AI 功能的使用单位。它们让您可以透明地追踪和管理 AI 能力的消耗。算力在每个计费周期重置,不会累积到下一周期。

0 commit comments

Comments
 (0)