presets: platform route config still diverges from runtime route rules
Maintainers usually reply within 2 days
@aaronanish-t is already working on this.
Since Nov 8, 2026.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- devops
Research direction
Start by comparing h3 runtime route behavior with the preset outputs for Netlify, Cloudflare, EdgeOne, and Vercel. Inspect rou3 handling of EdgeOne RE2 patterns, then verify that all listed cases either match runtime behavior or are skipped with a warning where the platform cannot express them.
Written by the indexing model from the issue text.
Description
Follow-up to #4706. These cases were already broken before that PR. In each one, the redirect and header config that presets generate (Netlify/Cloudflare _redirects and _headers, EdgeOne and Vercel config.json) does something different from the h3 runtime.
- Named catch-alls in redirect targets. h3 only fills in
**in the target when the rule key ends in a plain/**. For/old/**:path→/new/**, the runtime sends/old/a/bto/new/old/a/b, but the presets emit/new/a/b. Probably better aligned in h3. - Patterns Netlify and Cloudflare can't express.
:id(\d+),:id?,:x+,{b}?,*.pngand/a/**/bare written as-is and produce invalid lines. They should be skipped with a warning. redirect: false. It doesn't stop a broader redirect on Netlify, Cloudflare or EdgeOne; only Vercel handles it.- Method-scoped keys.
GET /old/**produces a broken line on Netlify and Cloudflare, and a regex that never matches on EdgeOne and Vercel. - Self-redirects. h3 skips a redirect when the request is already at the target, but the platforms don't, so
/docs/**→/docs/v2/**loops. - baseURL on redirect targets. Cloudflare Pages and EdgeOne add the baseURL to relative targets, while the runtime, Vercel and Netlify don't.
- EdgeOne RE2. A
**followed by an optional group (/**/{b}?) makes rou3 emit lookbehind, which RE2 rejects.catchAllRefalso points at the wrong group there.
Reported with AI assistance.
- Dominant language
- TypeScript
- Stars
- 11.5k
- Forks
- 968
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 64
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nitrojs/nitro
-
pending triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 2 days
-
cloudflare: `nitro deploy` fails when a parent directory has a Wrangler configPossibly taken @draarivpatel-ui claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
pending triage
Difficulty 5/5 Over a week Newbie friendliness 30/100
nitrojs/nitro#5205 · 1 reaction ·
Maintainers usually reply within 2 days
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ranxianglei/billion-context#8319 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
JimLiu/open-artifact#126 ·
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#98 ·
Maintainers usually reply within 1 day
-
Add: KCM True crimeOpenapproved check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day