Remove premium purchase
If you do not plan to sell the template itself, you can remove the premium purchase feature entirely.Delete folders
src/app/api/premium-purchase/src/app/api/webhooks/premium-purchase/src/app/(site)/premium-purchase/
Delete files
src/lib/premium-purchase.tssrc/lib/premium-purchase/hooks.tssrc/app/(site)/pricing/premium-button.tsx
Update pricing page
Insrc/app/(site)/pricing.tsx:
- Remove the
PremiumButtonimport - Replace
<PremiumButton />with a standard button or remove it
Remove env vars
Insrc/config/env.ts and .env:
- Remove all
PREMIUM_PURCHASE_*variables - Remove
NEXT_PUBLIC_PREMIUM_PURCHASE_STRIPE_PUBLISHABLE_KEY - Remove
NEXT_PUBLIC_PREMIUM_PURCHASE_DISCORD_INVITE_LINK
