nitrojs / nitrojs/nitro

Support `proxy` route rule with env expansion

Open
#2,070 0 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

It could be opt-in like proxy: { to: '/api/{{API_VER}}', env: true } to allow dynamic path in proxy rules

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the proxy route-rule handling and the existing environment-expansion path; first confirm how proxy: { to: '/api/{{API_VER}}', env: true } should opt in. Done means dynamic API_VER values are expanded in proxy destinations while behavior is unchanged when env is omitted, with the proxy rule behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.