-
-
Notifications
You must be signed in to change notification settings - Fork 53
[Feature Request] Add Support for Nuxt Backend (Nitro-Powered Server) #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Agreed, Also for me it would make a lot of sense to use a separate nitrojs server since more and more frameworks use nitro |
Yes please. We should also be able to use oRPC with nuxt's default nitro server |
@therealokoro Its actually quite easy to transform a better-t-stack with a honojs backend and orpc into using nitrojs This is the gist to implement it https://gist.github.com/ThimoDEV/54c69087148398e5dc82d4f8fa70dcbc |
@ThimoDEV I already did this. I even went on to add NuxtHub to my setup. I only made the comment because I feel it would be awesome to have it as a option in the stack at least for those who may find it difficult to do. And the whole idea of a starter template in the first place is to speed up your app creation process, so you don't have to run through the same setup every time you'd want to start a new project🤷🏾 |
Great to hear you already made it work. Since its not yet implemented let me also show the trpc variant so its as easy as possible to implement and for everyone who comes across this issue to make it just copy paste for now: https://gist.github.com/ThimoDEV/27eb1dba1fb447e43175f08093e5e99d I see it purely as documenting it so it doesn't get lost. Hope to get it builtin but this should hopefully help anyone new coming in this thread :) |
@ThimoDEV That's nice of you. How about you open a gist for the code to make it more readable |
Currently, create-better-t-stack does not support Nuxt’s native backend powered by Nitro. It would be great if we could use Nuxt backend when we select Nuxt as the framework, since it's already built-in. Given that Nuxt already ships with a powerful full-stack server engine (Nitro).
The text was updated successfully, but these errors were encountered: