-
The type requests in the new route system changed from NextApiequest to NextRequest
and the middleware seems cannot work accordingly. any workaround?
-
### The Problem
There doesn't seem to be a way to access the original host when using Next.js middleware as part of the recently released hybrid deployment. We're currently using the middleware lay…
-
Anyone have success getting the middleware to work with next-auth v5? I am wrapping the middleware in auth, but the req.url is whatever we set the `AUTH_URL` to be.
```
import { NextResponse } fro…
-
This example is so buggy...
I don't know if someone notice but toasts with errors will never show on login page because of permanent redirection in middleware, for example:
localhost:3000/login?…
-
### Description
有 限流,鉴权,白名单等插件。
根据不同的接口需要不同的组合,比如A接口需要限流,B接口需要鉴权+限流,C接口需要鉴权+白名单。
如果要使用消费者,需要建立很多消费者(3个插件就需要建立6个,4个建立24个消费者)
这种有什么好一点的处理办法吗?
### Environment
- APISIX version (run `apisi…
-
Hello, I wonder to know how can I return different data based on query parameters. I want it to look like this:
```js
server.get('/books?isbn=:isbn', (req, res) => {
// ... mock some data
r…
-
# Description
When recently writing tests for a huma router-agnostic middleware I didn't feel that there was an obvious pattern. I wasn't sure if this was an issue on my end, so I'd like explore the…
-
I've added the following simple middleware:
```
module.exports = (req, res, next) => {
console.log('runs');
req.url = '/';
next();
};
```
and run it like this:
`json-server…
-
### Description
Using helm chart 1.4.0 to install apisix 3.3.0 in decoupled mode.
When trying to test out MQTT stuff I attempted to install the `mqtt-proxy` plugin. I've put it in both `stream_plu…
-
I have created a filter that parses req$postBody and rewrites req$PATH_INFO based on the value of one of its fields. For example, if I were to POST JSON containing
> { "tag" : "foo" }
to endpoin…