fix: update the wrangler config

This commit is contained in:
2026-08-19 11:38:30 +07:00
parent 39846e59b9
commit ba98f9c2f8
+72 -72
View File
@@ -3,76 +3,76 @@
* https://developers.cloudflare.com/workers/wrangler/configuration/ * https://developers.cloudflare.com/workers/wrangler/configuration/
*/ */
{ {
"$schema": "node_modules/wrangler/config-schema.json", "$schema": "node_modules/wrangler/config-schema.json",
"name": "s3-google-drive", "name": "s3-google-drive",
"main": "src/index.ts", "main": "src/index.ts",
"compatibility_date": "2025-09-27", "compatibility_date": "2025-09-27",
"vars": { "vars": {
"ALLOW_MULTIPART": "true", "ALLOW_MULTIPART": "true",
"ETAG_STYLE": "md5", "ETAG_STYLE": "md5",
"CORS_ALLOWED_ORIGINS": "", "CORS_ALLOWED_ORIGINS": "https://s3-drive-storage-manage.nezumi.workers.dev",
"ENABLE_DOCS": "true" "ENABLE_DOCS": "true",
}, },
"rules": [ "rules": [
{ {
"type": "Text", "type": "Text",
"globs": ["**/*.yaml"], "globs": ["**/*.yaml"],
"fallthrough": false "fallthrough": false,
} },
], ],
"observability": { "observability": {
"enabled": true "enabled": true,
}, },
"durable_objects": { "durable_objects": {
"bindings": [ "bindings": [
{ {
"name": "MPU", "name": "MPU",
"class_name": "MultipartUploadDO" "class_name": "MultipartUploadDO",
} },
] ],
}, },
"migrations": [ "migrations": [
{ {
"tag": "v1", "tag": "v1",
"new_sqlite_classes": ["MultipartUploadDO"] "new_sqlite_classes": ["MultipartUploadDO"],
} },
], ],
"kv_namespaces": [ "kv_namespaces": [
{ {
"binding": "AUTH_KV", "binding": "AUTH_KV",
"id": "2113be46ce514e088572d0ef7459c1bf" "id": "2113be46ce514e088572d0ef7459c1bf",
}, },
{ {
"binding": "FOLDER_CACHE", "binding": "FOLDER_CACHE",
"id": "6d2f9904a3ff4471b0f04025c1ae87cd" "id": "6d2f9904a3ff4471b0f04025c1ae87cd",
} },
] ],
/** /**
* Smart Placement * Smart Placement
* https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement * https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
*/ */
// "placement": { "mode": "smart" } // "placement": { "mode": "smart" }
/** /**
* Bindings * Bindings
* Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including * Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including
* databases, object storage, AI inference, real-time communication and more. * databases, object storage, AI inference, real-time communication and more.
* https://developers.cloudflare.com/workers/runtime-apis/bindings/ * https://developers.cloudflare.com/workers/runtime-apis/bindings/
*/ */
/** /**
* Environment Variables * Environment Variables
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
* Note: Use secrets to store sensitive data. * Note: Use secrets to store sensitive data.
* https://developers.cloudflare.com/workers/configuration/secrets/ * https://developers.cloudflare.com/workers/configuration/secrets/
*/ */
// "vars": { "MY_VARIABLE": "production_value" } // "vars": { "MY_VARIABLE": "production_value" }
/** /**
* Static Assets * Static Assets
* https://developers.cloudflare.com/workers/static-assets/binding/ * https://developers.cloudflare.com/workers/static-assets/binding/
*/ */
// "assets": { "directory": "./public/", "binding": "ASSETS" } // "assets": { "directory": "./public/", "binding": "ASSETS" }
/** /**
* Service Bindings (communicate between multiple Workers) * Service Bindings (communicate between multiple Workers)
* https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings * https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
*/ */
// "services": [ { "binding": "MY_SERVICE", "service": "my-service" } ] // "services": [ { "binding": "MY_SERVICE", "service": "my-service" } ]
} }