docs: update missing documentation from closed issues (#948)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dream Hunter
2026-04-06 11:11:44 +08:00
committed by GitHub
parent a0db913952
commit b86d1faac4
16 changed files with 120 additions and 20 deletions

View File

@@ -9,6 +9,10 @@ Refer to [Deploy Worker](/en/guide/cli/worker#deploy-worker-with-frontend-option
## Separate Frontend and Backend Deployment
> [!warning] Important: SPA Mode
> This project is a Single-Page Application (SPA). If you deploy manually via the Cloudflare dashboard, **you must set "Not Found handling" to `Single-page application (SPA)` in the advanced options**, otherwise refreshing the page or directly accessing sub-paths like `/admin` will return a 404 error.
> When deploying via CLI (`wrangler pages deploy`), this is handled automatically and no extra configuration is needed.
The first deployment will prompt you to create a project. For the `production` branch, enter `production`.
```bash

View File

@@ -35,6 +35,8 @@ compatibility_date = "2024-09-23"
compatibility_flags = [ "nodejs_compat" ]
# If you want to use a custom domain, you need to add routes configuration
# Replace pattern with your own domain, which must already be added to your Cloudflare account
# Once configured, the Worker will serve via this custom domain instead of the default *.workers.dev domain
# routes = [
# { pattern = "temp-email-api.xxxxx.xyz", custom_domain = true },
# ]
@@ -59,7 +61,8 @@ compatibility_flags = [ "nodejs_compat" ]
PREFIX = "tmp"
# All domains used for temporary email, supports multiple domains
DOMAINS = ["xxx.xxx1" , "xxx.xxx2"]
# Secret key for generating JWT, JWT is used for user login and authentication
# Secret key for signing JWTs used in login and authentication
# Use a random string, e.g. generated via: openssl rand -hex 32
JWT_SECRET = "xxx"
# Admin console password, if not configured, console access is not allowed