Skip to content

feat: Add preRewrite and routes options.#422

Merged
Eomm merged 3 commits into
fastify:mainfrom
ShogunPanda:prerewrite
Jun 24, 2025
Merged

feat: Add preRewrite and routes options.#422
Eomm merged 3 commits into
fastify:mainfrom
ShogunPanda:prerewrite

Conversation

@ShogunPanda
Copy link
Copy Markdown
Contributor

This PR adds two new options:

  1. routes, which is used to explicitly provide the list of routes we want to manage via http-proxy. Defaults to / and /*, which is the current behavior.
  2. preRewrite, which is a function which can be provided to manipulate the request URL before rewriting and serving it via reply.from.

Checklist

Signed-off-by: Paolo Insogna <paolo@cowtech.it>
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina requested review from Eomm and Uzlopak June 19, 2025 09:58
Comment thread test/test.js Outdated
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
@Eomm Eomm merged commit bab12aa into fastify:main Jun 24, 2025
14 checks passed
@ShogunPanda ShogunPanda deleted the prerewrite branch June 24, 2025 15:03
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants