docs: simplify D1 naming guidance (#961)

This commit is contained in:
Dream Hunter
2026-04-08 01:26:28 +08:00
committed by GitHub
parent 9689a1cbca
commit 873a10ddb1
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ wrangler d1 execute temp-email-db --file=db/schema.sql --remote
wrangler kv:namespace create DEV
```
Use a project-specific D1 database name such as `temp-email-db` instead of a generic name like `dev`.
Use a D1 database name such as `temp-email-db` or `cloudflare-temp-email-prod`.
![d1](/readme_assets/d1.png)

View File

@@ -13,7 +13,7 @@ wrangler d1 execute temp-email-db --file=../db/schema.sql --remote
```
> [!tip]
> Use a project-specific database name such as `temp-email-db` or `cloudflare-temp-email-prod` so it remains easy to identify later. Avoid generic names like `dev`.
> Use a D1 database name such as `temp-email-db` or `cloudflare-temp-email-prod`.
After creation, you can see the D1 database in the Cloudflare console.

View File

@@ -13,7 +13,7 @@ wrangler d1 execute temp-email-db --file=../db/schema.sql --remote
```
> [!tip] 命名建议
> 数据库名称建议使用和项目相关、方便识别的名字,例如 `temp-email-db`、`cloudflare-temp-email-prod`,不要继续使用过于宽泛的 `dev`
> 数据库名称请使用例如 `temp-email-db`、`cloudflare-temp-email-prod` 这样的名称
创建完成后,我们在 cloudflare 的控制台可以看到 D1 数据库