File size: 1,530 Bytes
851e5ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # RevenueCat Apple IAP Deploy Notes
## Completed from this session
- Vercel project identified: `fujiwarachokis-projects/supoclip`
- Vercel production URL: `https://www.supoclip.com`
- Vercel root directory: `frontend`
- Production env var added in Vercel:
- `REVENUECAT_WEBHOOK_AUTH_HEADER`
- Source: copy the value from local `frontend/.env`
- Optional override vars were not present in local `frontend/.env`, so they were not set:
- `REVENUECAT_PRO_PRODUCT_IDS`
- `REVENUECAT_SCALE_PRODUCT_IDS`
## Manual production steps still required
1. Confirm `REVENUECAT_WEBHOOK_AUTH_HEADER` exists in the Vercel Production environment for `supoclip`.
2. If custom RevenueCat product identifiers are needed, set these Vercel Production env vars from the production billing configuration:
- `REVENUECAT_PRO_PRODUCT_IDS`
- `REVENUECAT_SCALE_PRODUCT_IDS`
3. Run the Prisma migration against the production frontend database only after positively identifying the production `DATABASE_URL`:
```bash
cd frontend
DATABASE_URL="<production-database-url>" npx prisma migrate deploy
```
4. Apply the backend SQL migration against the production backend database:
```bash
psql "<production-backend-database-url>" -f backend/migrations/003_add_revenuecat_subscription_provider.sql
```
5. Deploy/redeploy production after the database migrations have completed.
6. Verify the RevenueCat dashboard webhook URL is configured as:
```text
https://www.supoclip.com/api/billing/revenuecat-webhook
```
|