cloudflare / cloudflare/developer-platform

Invalid _redirects configuration causes infinite loop when deploying to Cloudflare Workers

オープン
#14 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
api
主要言語
言語のデータがありません
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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]

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、リンク先の `mcp-tips` 最小再現を使って `wrangler deploy` で失敗を再現し、生成された `_redirects` ファイルと Cloudflare API のエラーを調査します。無効なルールが処理されるか、実行可能な指針とともに報告され、この再現に対してデプロイの動作が検証されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
cloud, devops
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。