Replies: 3 comments 1 reply
-
Could you also make a small reproduction on StackBlitz or somewhere? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sure.
Here is a link:
https://stackblitz.com/edit/nuxt-starter-511bme?file=server/middleware/a.ts
`a` is not console.logged.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok I think it is linked to one of my PRs on Nitro: nitrojs/nitro#807 It was intended to filter unique handlers per route/method but middlewares all have the same route I think; I'll make a quick PR to revert that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've just updated nuxt to v3.1 and since this update I don't manage to run many server middlewares anymore.
I have 2 server middlewares
logger.ts
andauthentication.ts
. Onlylogger.ts
is executed on requests.If I add a 3rd middleware
test.ts
only this one is executed.If I rename
test.ts
toa.ts
onlylogger.ts
is executed.It seems that only the last middleware (A-Z sorted) is executed.
Someone could confirm so that I can submit an issue ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions