I've been working on handling Stripe webhook events in Next.js API Routes this week and had some issues with verifying the signing secret that Stripe sends with the request. The Stripe SDK expects the raw request body to verify the secret and Next.js automatically parses it.
This post shows you how to make it work.
I'm on a mission to rid myself of my reliance on Firebase without locking in on a service like AWS. The search led me to MongoDB Realm, which looks to be a serious contender. I've now dug a little bit deeper into Realm and have something more to say about my initial impression.
Firebase is a great tool to handle auth and real-time data sync. I've used it to build eCommerce sites and progressive web apps. But it's not without limitations. These limitations led me to search for an alternative solution. This post explores some of the alternatives I found and how they compare to Firebase.