From b088ea717086057c0de8b01649f7d8157dcacb43 Mon Sep 17 00:00:00 2001 From: Omar Najjar Date: Mon, 31 Mar 2025 18:19:40 +1100 Subject: [PATCH] Create wrangler.toml --- wrangler.toml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 wrangler.toml diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..b08893e --- /dev/null +++ b/wrangler.toml @@ -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" \ No newline at end of file