Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #10 by adding a wrangler.toml configuration file to the repository. The one-click deployment to Cloudflare Workers was failing because the deployment service requires a wrangler.toml file to be present in the repository. The added file is identical to the existing wrangler.toml.template and contains placeholder values for username, password, and bucket name that will be configured during deployment.
Changes:
- Added
wrangler.tomlwith standard Cloudflare Workers configuration including R2 bucket binding and environment variables
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,12 @@ | |||
| name = "cf-r2-webdav" | |||
| main = "src/index.ts" | |||
| compatibility_date = "2023-01-01" | |||
There was a problem hiding this comment.
The compatibility_date is set to "2023-01-01", which is now over 3 years old. Cloudflare Workers compatibility dates control which versions of APIs and behaviors are used. Using an older compatibility date may prevent access to newer features, bug fixes, and performance improvements.
Consider updating to a more recent compatibility date (e.g., "2024-01-01" or later) to take advantage of improvements in the Cloudflare Workers runtime. Review the Cloudflare Workers changelog to ensure no breaking changes affect this application.
| compatibility_date = "2023-01-01" | |
| compatibility_date = "2024-01-01" |
fix: 修复 在提供的目录中找不到 wrangler.json、wrangler.jsnc 或 wrangler.toml 文件,解决一键部署报错 (closes #10)