Possible to use Nitro without filesystem routing? #2730
chrber04
started this conversation in
Help Wanted
Replies: 1 comment 3 replies
-
Surely you can directly use //https://nitro.unjs.io/config
export default defineNitroConfig({
handlers: [
{
route: '/',
handler: '~/my-routes/index.ts',
},
],
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I was wondering if it's possible to use nitro without the file based routing? And if it's possible to create the server & boot up the application more programatically.
My use case is that I want to use Nitro with Effect-TS. This is an example of how I got it working with h3:
H3 is great but I can't help shake the feeling that Nitro is better for the long term since it's more feature-complete.
Beta Was this translation helpful? Give feedback.
All reactions