-
Notifications
You must be signed in to change notification settings - Fork 50
chore: added missing vercel file #279
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ignaciosantise's task —— View job Code Review Complete✅ No issues found Review SummaryAnalyzed 2 changed files:
Changes verified:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Vercel deployment configuration for proper asset loading and simplifies error reporting in the payment failure flow by removing redundant toast notifications.
- Adds
vercel.jsonwith a rewrite rule to correctly serve the CanvasKit WebAssembly file for Expo web deployments - Removes redundant error toast notification from the payment failure screen, keeping only
console.errorfor debugging since the error is already displayed prominently on the screen itself
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
dapps/pos-app/vercel.json |
New Vercel configuration file with rewrite rule for canvaskit.wasm to support Expo web deployments |
dapps/pos-app/app/payment-failure.tsx |
Simplifies error handling by replacing showErrorToast with console.error, avoiding redundant notifications since the screen already displays the error message |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
| } | ||
| ] | ||
| } | ||
|
|
Copilot
AI
Nov 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The file has an extra blank line at the end (two blank lines total). Other JSON files in this project (app.json, tsconfig.json) have only a single trailing newline. Consider removing one blank line for consistency.
This pull request introduces a configuration update to support asset loading in the POS app and refactors error handling in the
PaymentFailureScreen. The most important changes are grouped below:Configuration for asset loading:
vercel.jsonfile with a rewrite rule to ensurecanvaskit.wasmis served correctly for Expo web deployments.Error handling improvements:
showErrorToastinpayment-failure.tsx, replacing it with aconsole.errorcall for reporting payment errors. This simplifies error reporting and avoids unnecessary UI toast notifications on payment failures. [1] [2]