hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
https://www.npmjs.com/package/next-connect
MIT License
1.62k stars 65 forks source link

expressWrapper is not full-supported #210

Open yunsii opened 1 year ago

yunsii commented 1 year ago

For example, I use express-basic-auth with config { challenge: true }, it will call res.set(), but res.setHeader() instead in Next.js.

hoangvvo commented 1 year ago

You're right. I will add these express function in the wrapper

jferrettiboke commented 1 year ago

req.is(type) is not supported. It'd be great to add it as well. https://expressjs.com/en/api.html#req.is

hafaiedhmehdy commented 2 weeks ago

req.is(type) is not supported. It'd be great to add it as well. https://expressjs.com/en/api.html#req.is

This still is an issue today.