Skip to content

Commit

Permalink
set default RC url
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbsky committed Dec 10, 2024
1 parent 7e98316 commit 79cd632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bsync/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const envToCfg = (env: ServerEnvironment): ServerConfig => {

let purchasesCfg: PurchasesConfig | undefined
if (env.revenueCatV1ApiKey) {
assert(env.revenueCatV1ApiUrl, 'missing RevenueCat V1 api url')
assert(
env.revenueCatWebhookAuthorization,
'missing RevenueCat webhook authorization',
Expand All @@ -49,7 +48,8 @@ export const envToCfg = (env: ServerEnvironment): ServerConfig => {

purchasesCfg = {
revenueCatV1ApiKey: env.revenueCatV1ApiKey,
revenueCatV1ApiUrl: env.revenueCatV1ApiUrl,
revenueCatV1ApiUrl:
env.revenueCatV1ApiUrl || 'https://api.revenuecat.com/v1',
revenueCatWebhookAuthorization: env.revenueCatWebhookAuthorization,
stripePriceIdMonthly: env.stripePriceIdMonthly,
stripePriceIdAnnual: env.stripePriceIdAnnual,
Expand Down

0 comments on commit 79cd632

Please sign in to comment.