Search
Setup for Free
N
Nuxt
•
2y ago
Gyen Abubakar
Nitro: How do I pass data in a middleware to route handlers?
In Express
, you can do this attaching data to the
response.locals
response.locals
object
. How do I do this in Nitro
?
Nuxt
Join
Nuxt Community Chat Server
31,867
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
response.locals
response.locals
Similar Threads
Way to pass data between route middleware and page
N
Nuxt / ❓・help
12mo ago
How do you add a middleware to nitro.routeRules in defineNuxtConfig?
N
Nuxt / ❓・help
10mo ago
How do I pass a variable from the middleware to my page?
N
Nuxt / ❓・help
14mo ago
async Nitro middleware
N
Nuxt / ❓・help
2y ago