Landing page, blog, marketing pages, supabase auth, supabase database, polar subscription.
Complete subscription management system with Polar integration for handling payments and subscriptions.
Simple mdx blog configuration with SEO optimization for better search engine visibility.
Supabase auth for user management and authentication.
Simple Supabase setup for storing user data and subscription information.
Initial Setup
bash# Install pnpm if you haven't already npm install -g pnpm # Initialize project pnpm install git init
Setup Supabase
.env.local
:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
bashpnpx supabase db link pnpx supabase db push
Setup Polar
.env.local
:
POLAR_ACCESS_TOKEN=your_polar_token
bashpnpm run polar:seed
Deployment Setup
a. GitHub and Vercel Setup
bashgit add . git commit -m "init" git push
.env.local
to Vercel's environment variablesb. Polar Webhook Configuration
https://[your-vercel-url]/api/webhook/polar
POLAR_WEBHOOK_SECRET=your_webhook_secret
Testing
Start Development Server
bashpnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
One-time payment, lifetime access
One-time payment, 1 year of updates