A classic car rental app with search and bookings.

RenRide is a full-stack classic car rental application. Users can search for cars and make bookings, and booking counts are tracked in the database.
The Next.js frontend and the Express.js backend are deployed separately on Vercel, with Better Auth for authentication and MongoDB for data.
The backend had to be restructured for serverless: routes registered up front, a lazy database connection (getDb) to avoid a startup race condition, and a vercel.json file for routing.
Better Auth needed trustedOrigins and a baseURL to solve CORS issues, and verifying tokens in the Express API took careful debugging.
Next.js 16's proxy middleware runs on the Edge Runtime, so session checks switched to reading the session cookie. A build-breaking bug in a newer Better Auth release also meant pinning version 1.6.11.