Self-host
Registry URL
Serve shadcn registry files from your own vantezzen/pay domain.
The shadcn components install from your vantezzen/pay instance:
https://your-domain.com/r/pay-provider.jsonThe registry JSON is generated from registry.json and registry/pay/**.
Consumer install commands
When self-hosting, replace pay.vantezzen.io with your own domain:
npx shadcn@latest add https://pay.example.com/r/pay-provider.json
npx shadcn@latest add https://pay.example.com/r/pay-purchase.json
npx shadcn@latest add https://pay.example.com/r/pay-gate.jsonIn the consuming app:
NEXT_PUBLIC_PAY_URL=https://pay.example.com
NEXT_PUBLIC_PAY_KEY=pay_pk_your_keyWhen the domain changes
If you move the vantezzen/pay instance to a new domain:
- Update consuming apps'
NEXT_PUBLIC_PAY_URL. - Update shadcn install commands in your docs/readme.
- Update provider webhook endpoints.
- Rebuild/deploy so
/r/*.jsonis current.
CORS
The registry JSON under /r is served with permissive CORS headers so shadcn
can fetch it during install.