-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
46 lines (35 loc) · 1.03 KB
/
wrangler.toml
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
#:schema node_modules/wrangler/config-schema.json
workers_dev = true
name = "rr7-better-auth"
main = "./workers/server.ts"
# Compatibility
compatibility_date = "2024-11-18"
compatibility_flags = ["nodejs_compat"]
# Assets
assets = { directory = "./build/client/" }
# KV namespaces
kv_namespaces = [
{ binding = "AUTH_CACHE_KV", id = "auth_cache_kv_id" },
]
# Observability
[observability]
enabled = true
# Enable smart placement to optimize request latency and D1 database access
# https://developers.cloudflare.com/workers/configuration/smart-placement/
# [placement]
# mode = "smart"
# D1
[[d1_databases]]
binding = "DB"
database_name = "rr7-better-auth"
database_id = "database_id"
migrations_dir = "drizzle"
# Environment variables
[vars]
ENVIRONMENT = "development" # development | production
BETTER_AUTH_SECRET = "3ebc25b381e87193f29ffea6b6d380dd" # https://generate-secret.vercel.app/32
BETTER_AUTH_URL = "http://localhost:8787"
GITHUB_CLIENT_ID = "..."
GITHUB_CLIENT_SECRET = "..."
GOOGLE_CLIENT_ID = "..."
GOOGLE_CLIENT_SECRET = "..."