docs: upd cf dash link
This commit is contained in:
1 parent
97efb09baa
commit
0a75e4294f
2 files changed
+4
-19
No files matched your search
@@ -6,26 +6,9 @@ After registration, you will be prompted to create a database. I named it `vmail
|
||||
|
||||

|
||||
|
||||
Then, Create a table named `emails`. Select your database, you will see the "Edit Tables" button, click and enter.
|
||||
|
||||

|
||||
|
||||
> ⚠️ 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 <database-name>
|
||||
|
||||
# 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:
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
Reference in new issue
Block a user