NotMe
TTCTheo's Typesafe Cult
•Created by NotMe on 5/10/2023 in #questions
Firebase deployment
I have a question so we have T3 application and we want to deploy it to Firebase we are currently running firebase deploy command but the deployed website is not able to use any kind of backend or db.
When we run firebase deploy it jusr runs and creates a SSR function and the website is being deployed but when we actually make any kind of TRPC call like normal hello world example is not working in firebase deployment.
We don't have a seperate functions folder in our project we have strictly followed folder structure of T3 docs so there is a src/server in which there are tRPC routes defined.
I also noticed one more thing whenever I try to access any DB related route in the logs of SSR function which Google created during deployment it says Prisma Client failed to initialise please run prisma generate.
I couldn't find any working example or tutorial about deployment of T3 stack with firebase.
16 replies