Skip to content

Commit ef679eb

Browse files
committed
chore: Readd bundle envs
1 parent 2242106 commit ef679eb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ E2E_TEST_ACCOUNT_BASE_PASSWORD=test-password
117117
# Monitor Premium features
118118
# Link to start user on the subscription process. PREMIUM_ENABLED must be set to `true`.
119119
SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
120+
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_INDIVIDUAL_MONTHLY_US=424
121+
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_MONTHLY_US=42
120122

121123
# SubPlat 2.0 URL, product and plan IDs, used for Plus subscriptions:
122124
FXA_SUBSCRIPTIONS_URL=https://accounts.stage.mozaws.net/subscriptions

.env.local.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ EMAIL_FROM="Mozilla Monitor Stage <[email protected]>"
4343
# Whether GA4 sends data or not. NOTE: must be set in build environment.
4444
NEXT_PUBLIC_GA4_DEBUG_MODE=true
4545
SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
46+
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_INDIVIDUAL_MONTHLY_US=424
47+
SUBSCRIPTION_BILLING_AMOUNT_BUNDLE_MONTHLY_US=42
4648

4749
# HIBP setup
4850
HIBP_KANON_API_ROOT=https://enterprise.stage-api.haveibeenpwned.com

src/app/functions/server/getPremiumSubscriptionInfo.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@ export function getPremiumSubscriptionUrl({
6262
}
6363

6464
type SubscriptionBillingAmount = Record<
65-
Exclude<SubscriptionPeriod, "bundle">,
65+
Exclude<SubscriptionPeriod, "bundle" | "yearly">,
6666
number
6767
> &
6868
Record<"bundle", BundleBillingAmount>;
6969

7070
export function getSubscriptionBillingAmount(): SubscriptionBillingAmount {
7171
return {
72-
yearly: parseFloat(
73-
process.env.SUBSCRIPTION_BILLING_AMOUNT_YEARLY_US as string,
74-
),
7572
monthly: parseFloat(
7673
process.env.SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US as string,
7774
),

0 commit comments

Comments
 (0)