Replies: 2 comments 2 replies
-
What's the use case? If you want to add things for the route loaders/actions to use you can use the router context to set values there and read them somewhere else without modifying the actual request object. If the idea is to make |
Beta Was this translation helpful? Give feedback.
-
For example if you have the language detection strategy set to prioritize the locale value from the cookie over the locale value from the url, the middleware can automatically change (rewrite) the url. Base language: de
Without this feature actually it is not possible to use a new ParaglideJS 2.0 middleware. :( |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a question if is it planned to be able to rewrite request in middleware? Or something like that. This pattern is used for example in ParaglideJS.
NextJS
HonoJS
Beta Was this translation helpful? Give feedback.
All reactions