-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.toml
More file actions
57 lines (46 loc) · 1.28 KB
/
Copy pathwrangler.toml
File metadata and controls
57 lines (46 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name = "cloudflare-fullstack-starter"
main = "./src/worker/index.ts"
compatibility_date = "2025-04-01"
compatibility_flags = ["nodejs_compat"]
upload_source_maps = true
[observability]
enabled = true
[assets]
directory = "./dist/client"
not_found_handling = "single-page-application"
binding = "ASSETS"
run_worker_first = ["/api/*"]
[vars]
ENVIRONMENT = "local"
EMAIL_PROVIDER = "cloudflare"
AUTH_EMAILS_LOCAL_ENABLED = "false"
[[send_email]]
name = "SEND_EMAIL"
allowed_sender_addresses = ["noreply@example.com"]
remote = true
[[d1_databases]]
binding = "DB"
database_name = "cloudflare-fullstack-starter"
database_id = "local"
[env.preview]
[env.preview.vars]
ENVIRONMENT = "preview"
EMAIL_PROVIDER = "cloudflare"
[[env.preview.d1_databases]]
binding = "DB"
database_name = "cloudflare-fullstack-starter-preview"
database_id = "YOUR_PREVIEW_D1_DATABASE_ID"
[[env.preview.send_email]]
name = "SEND_EMAIL"
allowed_sender_addresses = ["noreply@example.com"]
[env.production]
[env.production.vars]
ENVIRONMENT = "production"
EMAIL_PROVIDER = "cloudflare"
[[env.production.d1_databases]]
binding = "DB"
database_name = "cloudflare-fullstack-starter"
database_id = "YOUR_PRODUCTION_D1_DATABASE_ID"
[[env.production.send_email]]
name = "SEND_EMAIL"
allowed_sender_addresses = ["noreply@example.com"]