-
Notifications
You must be signed in to change notification settings - Fork 147
feat(examples): better vercel support #3967
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
base: main
Are you sure you want to change the base?
Conversation
|
🚅 Deployed to the rivet-pr-3967 environment in rivet-frontend
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code ReviewSummaryThis PR improves Vercel deployment support for the hello-world example by restructuring the project to align with Vercel's conventions. The changes move from a Hono-based structure to a Vite-based structure with proper API routing. Key Changes
Issues Found🔴 Critical Issues1. Using pkg.pr.new URL for Production Dependency "vite-plugin-srvx": "https://pkg.pr.new/rivet-dev/vite-plugin-srvx@312eeb8"
2. Route Path Mismatch // api/index.ts
app.all("/rivet/*", (c) => registry.handler(c.req.raw));
// vite.config.ts
plugins: [react(), ...srvx({ entry: "api/index.ts", prefix: "/api" })],
// vercel.json
"source": "/api/:path*",
"destination": "/api/"
🟡 Medium Priority Issues3. Missing Newline at End of File
4. Inconsistent Import Ordering
✅ Good Practices
RecommendationsBefore Merging
Testing Checklist
Security & Performance
Test Coverage
Overall Assessment: The changes are well-structured and improve Vercel compatibility. The main blocking issue is the unstable dependency URL that needs to be resolved before merging. |

No description provided.