-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: Do not import Stripe lib in getServerErrorFromUnknown
#19578
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
getServerErrorFromUnknown
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (02/26/25)1 reviewer was added to this PR based on Keith Williams's automation. |
getServerErrorFromUnknown
getServerErrorFromUnknown
E2E results are ready! |
@zomars Let's copy and paste the relevant parts of the source code instead of relying on "any"s Addressed! |
Changes look good @hbjORbj. Before merging can we post evidence that a Stripe error is properly being caught and displayed? |
Gottcha |
@zomars Hey Zomar, I added a unit test. Can you reapprove after review? |
What does this PR do?
two reasons for this PR:
getServerErrorFromUnknown
, importing stripe lib throws an error because it's incompatible with the Edge Runtime due to its reliance on Node.js-specific APIs like crypto and httpgetServerErrorFromUnknown
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?