diff --git a/docs/receive-tutorial-en.md b/docs/receive-tutorial-en.md index 6883030..ef89aed 100644 --- a/docs/receive-tutorial-en.md +++ b/docs/receive-tutorial-en.md @@ -6,26 +6,9 @@ After registration, you will be prompted to create a database. I named it `vmail ![](https://img.inke.app/file/3773b481c78c9087140b1.png) -Then, Create a table named `emails`. Select your database, you will see the "Edit Tables" button, click and enter. - -![](https://img.inke.app/file/d49086f9b450edd5a2cef.png) - -> ⚠️ Note: **There is a plus button in the upper left corner, and I tried to click it without any prompts or effects, so I used the cli provided by turso to initialize the table.** - -Cli documents: https://docs.turso.tech/cli/introduction - -For Linux (or mac/windows): +Select your database, you will see the "Edit Table" button, click and enter, continue to click the "SQL Runner" button in the upper left corner, and insert the [SQL Script](https://github.com/oiov/vmail/blob/main/packages/database/drizzle/0000_sturdy_arclight.sql) Copy to Terminal Run: ```bash -# Install (Remember to restart the terminal after installation) -curl -sSfL https://get.tur.so/install.sh | bash - -# Authenticate -turso auth login - -# Connect to your Turso database -turso db shell - # Copy sql script to run on the terminal (packages/database/drizzle/0000_sturdy_arclight.sql) CREATE TABLE `emails` ( `id` text PRIMARY KEY NOT NULL, @@ -100,6 +83,8 @@ Ensure that the following environment variables (`.env.example`) are prepared an | TURNSTILE_KEY | Optional. Obtained from Cloudflare for website verification | `1234567890` | | TURNSTILE_SECRET | Optional. Obtained from Cloudflare for website verification | `s3cr3t` | +Get `TURNSTILE_KEY`、`TURNSTILE_SECRET` from https://dash.cloudflare.com/?to=/:account/turnstile + **For Vercel:** Deploy your own version of email to Vercel with one click: diff --git a/docs/receive-tutorial.md b/docs/receive-tutorial.md index 31f0126..8019609 100644 --- a/docs/receive-tutorial.md +++ b/docs/receive-tutorial.md @@ -106,7 +106,7 @@ pnpm run deploy | TURNSTILE_KEY | 可选,网站验证所需的 Turnstile Key | `my-turnstile-key` | | TURNSTILE_SECRET | 可选,网站验证所需的 Turnstile Secret | `my-turnstile-secret` | -获取 `TURNSTILE_KEY`、`TURNSTILE_SECRET` 请前往 cloudflare 控制台 https://dash.cloudflare.com/[account-id]/turnstile +获取 `TURNSTILE_KEY`、`TURNSTILE_SECRET` 请前往 cloudflare 控制台 https://dash.cloudflare.com/?to=/:account/turnstile **Vercel:**