mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-05 07:30:29 +08:00
docs: update missing documentation from closed issues (#948)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user