This package removes Next.js and rebuilds the app as a plain React + Vite frontend with Vercel serverless API functions.
- React frontend deployable to Vercel from Git
- Stripe checkout redirect endpoint at
/api/checkout - Stripe webhook endpoint at
/api/stripe/webhook - Password reset flow on
/reset-password - Billing confirmation polling on
/billing/success - Supabase-backed plan persistence across devices
- RLS migration in
supabase/migrations/20260328_billing_and_rls.sql
- Push this project to GitHub
- Import the repo into Vercel
- Add the environment variables from
.env.example - Deploy
Vercel should detect the framework as Vite. The frontend builds to dist, and the /api directory contains Vercel functions.
npm install
npm run devYou must configure:
- Supabase redirect URLs:
https://your-domain.com/auth/callbackhttps://your-domain.com/reset-password
- Stripe webhook endpoint:
https://your-domain.com/api/stripe/webhook
- Stripe Payment Link success URLs:
https://your-domain.com/billing/success?plan=standardhttps://your-domain.com/billing/success?plan=premium
The password reset flow depends on Supabase redirect configuration. The webhook depends on real Stripe secrets and price IDs.