Programatically register handlers (instead of file based routing)? #1089
Unanswered
francisashley
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Take a look at this option: https://nitro.unjs.io/config#handlers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, in the docs I can see it's possible to register handler functions directly in
devHandlers
https://nitro.unjs.io/config#devhandlers, however the feature is disabled in production ??. This feature is useful when the API file cannot returndefineEventHandler
as the default export.Is there another way of registering handlers directly or perhaps this can be enabled in production on a future release?
Beta Was this translation helpful? Give feedback.
All reactions