-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
apibugSomething that isn't workingSomething that isn't workinginternalRequires support from the Cloudflare PlatformRequires support from the Cloudflare Platform
Description
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:
/* /index.html 200
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]
Metadata
Metadata
Assignees
Labels
apibugSomething that isn't workingSomething that isn't workinginternalRequires support from the Cloudflare PlatformRequires support from the Cloudflare Platform
Type
Projects
Status
Other