Plans Config
Configure pricing tiers and Stripe integration.
Overview
The config/plans.config.ts file defines your pricing tiers for project submissions. Each plan specifies included features and Stripe price IDs.
Structure
export const plansConfig = {
plans: [
{
id: "free",
name: "Free",
price: 0,
features: ["Basic listing", "1 screenshot"],
},
{
id: "premium",
name: "Premium",
price: 19,
stripePriceId: "price_...",
features: ["Featured listing", "5 screenshots", "Priority review"],
},
],
}Helper functions
The config exports helper functions:
getPlan(id)— Get a specific plan by IDgetFreePlan()— Get the free tiergetPaidPlans()— Get all paid plans
Stripe setup
- Create products and prices in the Stripe Dashboard
- Copy the price IDs into
plans.config.ts - Set
STRIPE_SECRET_KEYandSTRIPE_WEBHOOK_SECRETin your environment
See Payments for the full Stripe integration guide.