#rhy0295
1 messages · Page 1 of 1 (latest)
hi! not too familiar with Firebase. What does your package.json or equivalent look like?
Hi Karl, thanks for helping out! Here is what my package.json looks like
and what does route.js look like? what is "@lib"?
here it is, I basically took the 'https://nextjs-with-stripe-typescript-demo.vercel.app' demo that Stripe had on their website and converted that to jsx
Hey! Taking over for my colleague. What you want to achieve exactly using Firebase ?
hey there, im looking to deploy this on firebase for hosting purposes
If you want to have a complete Firebase sample I invite you to check this complete guide:
https://github.com/invertase/stripe-firebase-extensions/tree/next/firestore-stripe-payments
npm run build works, but firebase deploy doesn't
I don't think either of us have ever really used Next.js, or Vercel, or Firebase so it's a bit hard to help unfortunately. AFAICT Vercel and Firebase are both hosting solutions so maybe a project designed for Vercel won't work on Firebase. Maybe try adding other dependencies to the project and see if those resolve, since I assume this is not a Stripe-library-specific issue and more of a dependency management in this environment
If I'm understanding correctly, what it's saying is to replace the imports that I might currently have such as '../actions/stripe' or "@/lib/stripe" with '"@invertase/firestore-stripe-payments"' to be compatible with firebase?
I'll give it a try, I agree with the fact that different hosting solutions would prob work differently