Skip to content

[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

Open
misbahansori opened this issue May 1, 2025 · 6 comments

Comments

@misbahansori
Copy link

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).

@ThimoDEV
Copy link

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
Copy link

Yes please. We should also be able to use oRPC with nuxt's default nitro server

@ThimoDEV
Copy link

ThimoDEV commented 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
Copy link

@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
Copy link

ThimoDEV commented 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
Copy link

@ThimoDEV That's nice of you. How about you open a gist for the code to make it more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants