3e3eea4bc7
Signed-off-by: Dan Hoizner <dan.hoizner@gmail.com>
605 B
605 B
@backstage/plugin-proxy-backend
| @backstage/plugin-proxy-backend |
|---|
| patch |
The proxy-backend plugin now supports reviving request bodies that have previously been consumed by an express middleware (e.g. express.json()). This is done by setting reviveConsumedRequestBodies: true on the proxy RouterOptions. In order to preserve the current behavior, the proxy will not revive request bodies by default.
The following is an example of a proxy createRouter invocation that revives request bodies:
const router = await createRouter({
config,
logger,
discovery,
+ reviveConsumedRequestBodies: true,
});