You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm currently trying to find the better way to implement my proxy rules with nitro (in a nuxt3 project).
My proxy rules must be optionally enabled in dev and prod build mode.
So I cannot use devProxy entry in configuration. Too bad because I was able to apply all the settings I need: timeout, secure, changeOrigin, headers, connection, ...
But I don't find any way to configure the timeout and other settings.
I don't see in the documentation what are the available options for routerRules too, if it is possible to do what is done with devProxy.
Any idea ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm currently trying to find the better way to implement my proxy rules with nitro (in a nuxt3 project).
My proxy rules must be optionally enabled in dev and prod build mode.
So I cannot use
devProxy
entry in configuration. Too bad because I was able to apply all the settings I need: timeout, secure, changeOrigin, headers, connection, ...So I'm trying to use a more programmatic approach with
handlers
configuration entry anddefineEventHandler
+proxyRequest
like this:But I don't find any way to configure the timeout and other settings.
I don't see in the documentation what are the available options for
routerRules
too, if it is possible to do what is done with devProxy.Any idea ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions