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
{{ message }}
Repository navigation
[Feature Request] Add Support for Nuxt Backend (Nitro-Powered Server) #216
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).
Reacted by Thimo, Aman Varshney, Okoro Redemption, Misbah Ansori, Joe Zimmerman, Avihu Turzion, Nestor Vera, vitorkoch and vueschool-stratebi
@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:
Nuxt can now be the backend with --backend self on Nitro (#819). If you still see this on the latest version, please reopen or open a new issue with the details.
Activity
ThimoDEV commentedon May 14, 2025
Agreed, Also for me it would make a lot of sense to use a separate nitrojs server since more and more frameworks use nitro
therealokoro commentedon May 16, 2025
Yes please. We should also be able to use oRPC with nuxt's default nitro server
ThimoDEV commentedon May 21, 2025
@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
therealokoro commentedon May 23, 2025
@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🤷🏾
ThimoDEV commentedon May 30, 2025
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 :)
therealokoro commentedon May 30, 2025
@ThimoDEV That's nice of you. How about you open a gist for the code to make it more readable
Mateleo commentedon Sep 8, 2025
Is there any update on this ?
hacknug commentedon Oct 10, 2025
Nitro v3 alpha is out 👀 https://v3.nitro.build/
AmanVarshney01 commentedon Oct 21, 2026
Nuxt can now be the backend with
--backend selfon Nitro (#819). If you still see this on the latest version, please reopen or open a new issue with the details.therealokoro commentedon Oct 21, 2026
Weldone @AmanVarshney01