-
Notifications
You must be signed in to change notification settings - Fork 536
chore(plus): upgrade to SubPlat 3.0 #13199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
client/src/env.ts
Outdated
export const MDN_PLUS_SUBSCRIBE_URL_SP3_BASE = | ||
process.env.REACT_APP_MDN_PLUS_SUBSCRIBE_URL_SP3_BASE; | ||
export const MDN_PLUS_USE_SP3 = Boolean(MDN_PLUS_SUBSCRIBE_URL_SP3_BASE); | ||
export const MDN_PLUS_SUBSCRIBE_5M_URL_SP3 = `${MDN_PLUS_SUBSCRIBE_URL_SP3_BASE}/${process.env.REACT_APP_MDN_PLUS_5M_SP3_ID}/monthly/landing`; | ||
export const MDN_PLUS_SUBSCRIBE_5Y_URL_SP3 = `${MDN_PLUS_SUBSCRIBE_URL_SP3_BASE}/${process.env.REACT_APP_MDN_PLUS_5Y_SP3_ID}/yearly/landing`; | ||
export const MDN_PLUS_SUBSCRIBE_10M_URL_SP3 = `${MDN_PLUS_SUBSCRIBE_URL_SP3_BASE}/${process.env.REACT_APP_MDN_PLUS_10M_SP3_ID}/monthly/landing`; | ||
export const MDN_PLUS_SUBSCRIBE_10Y_URL_SP3 = `${MDN_PLUS_SUBSCRIBE_URL_SP3_BASE}/${process.env.REACT_APP_MDN_PLUS_10Y_SP3_ID}/yearly/landing`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We want to document env variables in https://github.com/mdn/yari/blob/main/docs/envvars.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
REACT_APP_MDN_PLUS_10M_SP3_ID: mdnsupporter10mstage | ||
REACT_APP_MDN_PLUS_10Y_SP3_ID: mdnsupporter10ystage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these called mdnsupporter
here and mdnplus
above (in prod)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ours to question I think. I do not have yet access to the subplat backend. The prod identifiers are consistent though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment and a question but otherwise looks good
@@ -277,12 +290,16 @@ function getLocalizedPlans(countrySpecific: StripePlans): { | |||
currency: countrySpecific.currency, | |||
regular: { | |||
...PLUS_5.regular, | |||
ctaLink: `${MDN_PLUS_SUBSCRIBE_BASE}?plan=${countrySpecific.plans["mdn_plus_5m"].id}`, | |||
ctaLink: MDN_PLUS_USE_SP3 | |||
? MDN_PLUS_SUBSCRIBE_5M_URL_SP3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does SP3 no longer require us to pass the country specific plan in the url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The country is handled on their side now AFAIK
Co-authored-by: Leo McArdle <leo@mca.is>
Summary
Subscription Platform 3 rollout