next-http-proxy-middleware icon indicating copy to clipboard operation
next-http-proxy-middleware copied to clipboard

HTTP Proxy middleware available in API Middleware provided by Next.js.

Results 18 next-http-proxy-middleware issues
Sort by recently updated
recently updated
newest added

I'm changing the body of request before _httpProxyMiddleware_ function, & Server keep giving **400 Bad Request** error. Later I recognize that we also need to define the length of data...

I'm trying to use websocket with next-http-proxy-middleware, and it doesn't connect to my server, it just keeps the connection pending _next path: 'src/pages/api/[...all].ts'_ ```js import NextHttpProxyMiddleware from 'next-http-proxy-middleware' import {...

I'm trying to use this library to proxy websockets. I've tried several approaches but so far none of them are working. ```ts import { NextApiRequest, NextApiResponse } from "next"; import...

help wanted

Hey there, Getting the message in the subject after every request in my dev env when running npm run dev. How do I make it go away? Thanks

good first issue
question

Hello, what should one do in order to rewrite paths for different targets?

It would be great to have the possibility to chain proxy middlewares like this: httpProxyMiddleware(req, res, { target: process.env.target1, pathRewrite: [{ patternStr: "^/api", replaceStr: "", }], }).than((response)=>httpProxyMiddleware(req, response, { target:...

help wanted
good first issue
question

Hi, I was using the old signature for `pathRewrite` of a plan object, with the key as the test pattern & the value being the replacement string. This was working...

help wanted
good first issue

Thanks for open sourcing this library, saved me quite some time while implementing my API proxy. While working with `multipart/form-data` requests i've noticed that the Next.js bodyParser tries to parse...

documentation
good first issue

Unable to use path rewrite to external endpoint. using vanila `http-proxy-middleware` it is possible using router https://github.com/chimurai/http-proxy-middleware/blob/c935888ea7135365bea3c4c81e4ffe48f359a670/examples/response-interceptor/index.js#L39 Pseudo code ``` // src/pages/api/demo.ts export default (req: NextApiRequest, res: NextApiResponse) => httpProxyMiddleware(req,...

enhancement

I was using this module like so: ```ts import httpProxyMiddleware from 'next-http-proxy-middleware'; import { NextApiRequest, NextApiResponse } from 'next'; import { getSession } from '@auth0/nextjs-auth0'; import * as Sentry from...

good first issue
question