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 allSolution:Jump to 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 all16 Replies
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 pageshere's what I get, what does this mean?
check the icon on the start of (Route (pages)
and the legend at the bottom
so there's SSR is what you're saying
both
/ and /404
are static
only trpc route needs the serverwell what can I do now
is there a way to make trpc run on client
not host on firebase
that's the thing, I hosted on vercel
and everything worked
then my manager said I should do firebase
wth was he thinking
yikes
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
you can use ssr with firebase tho
just say to him
you need ssr to use trpc with firebase
and that is the end of the history
ok makes sense
well thanks for the help