Create wrangler.toml
This commit is contained in:
parent
8a0e32ce38
commit
b088ea7170
1 changed files with 32 additions and 0 deletions
32
wrangler.toml
Normal file
32
wrangler.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name = "radical-worker"
|
||||
main = "worker.js"
|
||||
compatibility_date = "2024-03-31"
|
||||
|
||||
# D1 Database Binding
|
||||
[[d1_databases]]
|
||||
binding = "DB" # Use this name in your code
|
||||
database_name = "radical-db"
|
||||
database_id = "1f2a5273-bfcb-45c8-a759-5d675c05620c"
|
||||
|
||||
# R2 Bucket Binding
|
||||
[[r2_buckets]]
|
||||
binding = "MEMES_BUCKET"
|
||||
bucket_name = "radical-memes"
|
||||
|
||||
# Environment variables (optional)
|
||||
[vars]
|
||||
ENVIRONMENT = "production"
|
||||
|
||||
# Cloudflare Pages deployment settings
|
||||
[build]
|
||||
command = "npm run build"
|
||||
publish = "dist"
|
||||
|
||||
# Routes (if using workers.dev)
|
||||
[[routes]]
|
||||
pattern = "theradicalparty.com/api/*"
|
||||
zone_name = "theradicalparty.com"
|
||||
|
||||
# Optional: Specific Node.js version
|
||||
[build.environment]
|
||||
NODE_VERSION = "18.16.0"
|
||||
Loading…
Add table
Reference in a new issue