entitlements-gating

付费

Server-side feature gating and paid-content delivery that works with any payment provider (Creem, Paddle, Stripe, Polar, Lemon Squeezy, manual grants). Covers a scope model (all / plan / pack / single item), expired vs revoked vs never-bought decisions, numeric plan limits, update windows for one-time purchases, blocking double purchases, short-lived signed download links that re-check access, and a Gate server component. Pure core with tests. Use when the user needs to lock features or files behind a plan, add a Pro tier, sell packs or bundles, add plan limits, or protect paid downloads in a Next.js app.

购买后可查看完整说明

这是付费技能,可单独购买,也可通过套餐获得全部技能。购买后可在本页或账户页下载。

目录

  • When to use / when not to
  • Prerequisites
  • Steps
  • Files to create or change
  • Hard rules
  • Pitfalls
  • Self-check