What versions & operating system are you using?
Environment:
- macOS
- wrangler: ^4.43.0
- slidev (sli.dev)
Please provide a link to a minimal reproduction
https://github.com/Ankcorn/mcp-tips
Describe the Bug
Description:
When deploying a slidev presentation using wrangler deploy, the deployment fails with a Cloudflare API error indicating an infinite redirect loop in the _redirects file.
Root Cause:
The _redirects file generated by slidev contains an invalid rewrite rule:
I would expect the error message to tell me to delete this file or just handle deploying it
Please provide any relevant error logs
[ERROR] A request to the Cloudflare API (/accounts/92a369ba0c773e307fbf9b8814730c09/workers/scripts/mcp-tips/versions) failed.
Invalid _redirects configuration:
Line 1: Infinite loop detected in this rule. This would cause a redirect to strip .html or
/index and end up triggering this rule again. [code: 10021]
What versions & operating system are you using?
Environment:
Please provide a link to a minimal reproduction
https://github.com/Ankcorn/mcp-tips
Describe the Bug
Description:
When deploying a slidev presentation using
wrangler deploy, the deployment fails with a Cloudflare API error indicating an infinite redirect loop in the_redirectsfile.Root Cause:
The
_redirectsfile generated by slidev contains an invalid rewrite rule:I would expect the error message to tell me to delete this file or just handle deploying it
Please provide any relevant error logs
[ERROR] A request to the Cloudflare API (/accounts/92a369ba0c773e307fbf9b8814730c09/workers/scripts/mcp-tips/versions) failed.
Invalid _redirects configuration:
Line 1: Infinite loop detected in this rule. This would cause a redirect to strip
.htmlor/indexand end up triggering this rule again. [code: 10021]