making sure nothing runs with SSR

I've created an app with create-t3-app, it uses trpc and has two procedures that create a new entry in a firebase database and show all the entries respectively. I then use the usequery hooks to access them I also have the trpc ssr option disabled. so with that description is my app using SSR in any way? the reason I am asking is because I want to host on firebase hosting and you have to pay to use cloud functions so I can't do SSR at all
Solution:
I've created an app with create-t3-app, it uses trpc and has two procedures that create a new entry in a firebase database and show all the entries respectively. I then use the usequery hooks to access them I also have the trpc ssr option disabled. so with that description is my app using SSR in any way? the reason I am asking is because I want to host on firebase hosting and you have to pay to use cloud functions so I can't do SSR at all
Jump to solution
16 Replies
Neto
Neto17mo ago
as long as the page does not export getServerSideProps it should not have any ssr you can also run a local build and check possible ssr pages
Neto
Neto17mo ago
King Dice
King DiceOP17mo ago
here's what I get, what does this mean?
Neto
Neto17mo ago
check the icon on the start of (Route (pages) and the legend at the bottom
King Dice
King DiceOP17mo ago
so there's SSR is what you're saying
Neto
Neto17mo ago
both / and /404 are static only trpc route needs the server
King Dice
King DiceOP17mo ago
well what can I do now is there a way to make trpc run on client
Neto
Neto17mo ago
not host on firebase
King Dice
King DiceOP17mo ago
that's the thing, I hosted on vercel and everything worked then my manager said I should do firebase wth was he thinking
Neto
Neto17mo ago
yikes
King Dice
King DiceOP17mo ago
he said I already used firestore for database so I should also use firebase for hsoting he says that doing vercel means that my app will be using 2 severs firebase + vercel and that's not efficient especially since vercel is AWS and firebase is google cloud
Neto
Neto17mo ago
you can use ssr with firebase tho
King Dice
King DiceOP17mo ago
Neto
Neto17mo ago
just say to him you need ssr to use trpc with firebase and that is the end of the history
King Dice
King DiceOP17mo ago
ok makes sense well thanks for the help
Want results from more Discord servers?
Add your server