/** * For more details on how to configure Wrangler, refer to: * https://developers.cloudflare.com/workers/wrangler/configuration/ */ { "$schema": "node_modules/wrangler/config-schema.json", "name": "attendance-worker", "main": "src/index.ts", "compatibility_date": "2026-08-08", "compatibility_flags": ["nodejs_compat"], "assets": { // The path to the directory containing the `index.html` file to be served at `/` "directory": "./public", }, "vars": { // Public (non-secret) vars. Secrets go in `.dev.vars` locally and via // `wrangler secret put` in production. "BETTER_AUTH_URL": "http://localhost:8787", "TRUSTED_ORIGINS": "http://localhost:5173", "WEB_APP_URL": "http://localhost:5173", "EMAIL_FROM": "Attendance ", "EMAIL_REPLY_TO": "Attendance ", }, "d1_databases": [ { "binding": "DB", "database_name": "attendance-db", // Replace this placeholder after creating the remote database with: // wrangler d1 create attendance-db "database_id": "00000000-0000-0000-0000-000000000000", "migrations_dir": "drizzle", }, ], "r2_buckets": [ { "binding": "MEMBER_GALLERY", "bucket_name": "attendance-member-gallery", }, ], "observability": { "enabled": true, }, "upload_source_maps": true, }