t3 turbo firebase functions
So I converted my t3 app to t3 turbo using this https://github.com/t3-oss/create-t3-turbo as my base. Everything is working great.
Now I'm trying to add firsbase functions. via the fire base cli
Anyone have experience adding firebase functions to t3 turbo app?
firebase init functions
. But after i install and run the basic command "serve": "pnpm run build && firebase emulators:start --only functions",
I get about 63 errors that say something like this ../../node_modules/@types/react-native/globals.d.ts:337:15 - error TS2300: Duplicate identifier 'URLSearchParams'.
which isn't being used.Anyone have experience adding firebase functions to t3 turbo app?
Solution:Jump to solution
Used this code example to do it. https://github.com/Hacksore/turborepo-firebase-example
GitHub
GitHub - Hacksore/turborepo-firebase-example: Turborepo + Firebase
Turborepo + Firebase. Contribute to Hacksore/turborepo-firebase-example development by creating an account on GitHub.
3 Replies
Solution
Used this code example to do it. https://github.com/Hacksore/turborepo-firebase-example
GitHub
GitHub - Hacksore/turborepo-firebase-example: Turborepo + Firebase
Turborepo + Firebase. Contribute to Hacksore/turborepo-firebase-example development by creating an account on GitHub.
GitHub
GitHub - 0x80/isolate-package: Isolate a monorepo package by bundli...
Isolate a monorepo package by bundling the build output with its shared workspace packages and lockfile to form a self-contained directory (compatible with firebase deploy). - GitHub - 0x80/isolate...
This is much better. using a compiler so firebase can work within a mono repo causes all sorts of headaches