/** * 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": "s3-google-drive", "main": "src/index.ts", "compatibility_date": "2025-09-27", "vars": { "DRIVE_ROOT_FOLDER": "s3-storage", "ALLOW_MULTIPART": "true", "ETAG_STYLE": "md5", "CORS_ALLOWED_ORIGINS": "https://s3-drive-storage-manage.nezumi.workers.dev,http://localhost:5173", "ENABLE_DOCS": "true" }, "rules": [ { "type": "Text", "globs": ["**/*.yaml"], "fallthrough": false } ], "observability": { "enabled": true }, "durable_objects": { "bindings": [ { "name": "MPU", "class_name": "MultipartUploadDO" } ] }, "migrations": [ { "tag": "v1", "new_sqlite_classes": ["MultipartUploadDO"] } ], "kv_namespaces": [ { "binding": "AUTH_KV", "id": "2113be46ce514e088572d0ef7459c1bf" }, { "binding": "FOLDER_CACHE", "id": "6d2f9904a3ff4471b0f04025c1ae87cd" } ] /** * Smart Placement * https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement */ // "placement": { "mode": "smart" } /** * Bindings * Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including * databases, object storage, AI inference, real-time communication and more. * https://developers.cloudflare.com/workers/runtime-apis/bindings/ */ /** * Environment Variables * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables * Note: Use secrets to store sensitive data. * https://developers.cloudflare.com/workers/configuration/secrets/ */ // "vars": { "MY_VARIABLE": "production_value" } /** * Static Assets * https://developers.cloudflare.com/workers/static-assets/binding/ */ // "assets": { "directory": "./public/", "binding": "ASSETS" } /** * Service Bindings (communicate between multiple Workers) * https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings */ // "services": [ { "binding": "MY_SERVICE", "service": "my-service" } ] }