-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
32 lines (26 loc) · 1.2 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
#:schema node_modules/wrangler/config-schema.json
# Visit https://developers.cloudflare.com/workers/wrangler/configuration/ to see full list of options for this file
# This will be the name of your worker in the Cloudflare Dashboard
name = "better-auth-react-router-cloudflare-d1"
# Compatibility date docs: https://developers.cloudflare.com/workers/configuration/compatibility-dates/
compatibility_date = "2024-11-18"
# See https://developers.cloudflare.com/workers/configuration/compatibility-flags/ for full list of flags
compatibility_flags = ["nodejs_compat"]
# Entry point for the worker app
main = "./build/server/worker.js"
[build]
command = "pnpm build"
[assets]
# https://developers.cloudflare.com/workers/static-assets/binding/ - these are the static assets served to clients
directory = "./build/client"
# These vars apply to both development & production
[vars]
# Values defined in .dev.vars will overwrite values here
BETTER_AUTH_URL="https://better-auth-react-router-cloudflare-d1.mattlynch.workers.dev"
CLOUDFLARE_ACCOUNT_ID=""
CLOUDFLARE_DATABASE_ID=""
[[d1_databases]]
binding = "DB"
database_name = "better-auth-example"
database_id = "07ec7bea-f5c0-4e14-a646-d83197cb9c43"
migrations_dir = "drizzle"