From ba98f9c2f87a1883774d0606501de048de1c90f1 Mon Sep 17 00:00:00 2001 From: Nezumi-2711 Date: Wed, 19 Aug 2026 11:38:30 +0700 Subject: [PATCH] fix: update the wrangler config --- wrangler.jsonc | 144 ++++++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index 2d375fc..9fa22e0 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -3,76 +3,76 @@ * 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": { - "ALLOW_MULTIPART": "true", - "ETAG_STYLE": "md5", - "CORS_ALLOWED_ORIGINS": "", - "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" } ] + "$schema": "node_modules/wrangler/config-schema.json", + "name": "s3-google-drive", + "main": "src/index.ts", + "compatibility_date": "2025-09-27", + "vars": { + "ALLOW_MULTIPART": "true", + "ETAG_STYLE": "md5", + "CORS_ALLOWED_ORIGINS": "https://s3-drive-storage-manage.nezumi.workers.dev", + "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" } ] }