/ wrangler.example.toml
wrangler.example.toml
 1  name = "frontend"
 2  main = ".svelte-kit/cloudflare/_worker.js"
 3  compatibility_flags = [ "nodejs_compat" ]
 4  compatibility_date = "2025-08-19"
 5  preview_urls = false
 6  minify = true
 7  
 8  routes = [
 9    { pattern = "instafication.shop", custom_domain = true },
10    { pattern = "www.instafication.shop", custom_domain = true }
11  ]
12  
13  [assets]
14  directory = ".svelte-kit/cloudflare"
15  binding = "ASSETS"
16  
17  [observability.logs]
18  enabled = true
19  
20  [placement]
21  mode = "smart"
22  
23  [[d1_databases]]
24  binding = "DB"
25  database_name = "prod"
26  database_id = "" # 13343-3211-1234-aeab-ea0a2fa81a6d"
27  migrations_dir = "drizzle/migrations"
28  experimental_remote = true
29  
30  [vars]
31  NODE_VERSION = "24.6.0"
32  ENVIRONMENT = "production"
33  
34  RESEND_API_KEY="" # re_AAAmwAAA_MW4D5qz4BoAMof1nugRXnmA7"
35  
36  CLOUDFLARE_ACCOUNT_ID="" # 0AAAA391e70VVBBBB433693af250bda9"
37  CLOUDFLARE_DATABASE_ID="" # AAAAAAAA-VVV2-4e54-aeab-ea0a2fa81a6d"
38  CLOUDFLARE_D1_TOKEN="" # ykEaZAVAAAAA07NSjeVLLapLAHDf34678TvgYj4g_l"
39  
40  # BetterAuth (D1 + Drizzle)
41  BETTER_AUTH_SECRET="change-me"
42  
43  # PostHog
44  PUBLIC_POSTHOG_KEY="" # phc_AVCCKOIJEIUWHGEYUEILTzlVfThdLuh7wtYH"
45  PUBLIC_POSTHOG_HOST="" # https://eu.i.posthog.com"
46  
47  # Stripe
48  STRIPE_PUBLISHABLE_KEY=""
49  STRIPE_SECRET_KEY=""
50  STRIPE_WEBHOOK_SECRET=""