Create path rewriting route Strips path prefix before proxying to backend
Rewrite configuration
Route with path rewriting
const route = createRewriteRoute({ id: "api-rewrite", host: "app.localhost", pathPrefix: "/api/v1", upstream: "backend:3000",});// Request to /api/v1/users → backend receives /users Copy
const route = createRewriteRoute({ id: "api-rewrite", host: "app.localhost", pathPrefix: "/api/v1", upstream: "backend:3000",});// Request to /api/v1/users → backend receives /users
Create path rewriting route Strips path prefix before proxying to backend