Repository navigation
chore: remove unused Stripe billing env vars - #30623
pethapixels-create wants to merge 1 commit into
Conversation
Remove 11 environment variables that are no longer referenced anywhere in the codebase (verified via grep across the repo, excluding .env.example and turbo.json): - NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE - NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE - NEXT_PUBLIC_IS_PREMIUM_NEW_PLAN - NEXT_PUBLIC_STRIPE_PREMIUM_NEW_PLAN_PRICE - STRIPE_TEAM_ANNUAL_PRICE_ID - ORG_MONTHLY_CREDITS - STRIPE_ORG_MONTHLY_PRICE_ID - STRIPE_ORG_ANNUAL_PRICE_ID - STRIPE_ORG_PRODUCT_ID - NEXT_PUBLIC_ORGANIZATIONS_MIN_SELF_SERVE_SEATS - STRIPE_WEBHOOK_SECRET_BILLING Removed from .env.example and all relevant turbo.json env sections. turbo.json remains valid JSON. Closes calcom#30499
|
Welcome to Cal.diy, @pethapixels-create! Thanks for opening this pull request. A few things to keep in mind:
A maintainer will review your PR soon. Thanks for contributing! |
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Summary
Removes 11 environment variables that are no longer referenced anywhere in the codebase. These were left over from the legacy Stripe billing system and only add noise/confusion to
.env.exampleandturbo.json.Closes #30499
Removed variables
NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICENEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICENEXT_PUBLIC_IS_PREMIUM_NEW_PLANNEXT_PUBLIC_STRIPE_PREMIUM_NEW_PLAN_PRICESTRIPE_TEAM_ANNUAL_PRICE_IDORG_MONTHLY_CREDITSSTRIPE_ORG_MONTHLY_PRICE_IDSTRIPE_ORG_ANNUAL_PRICE_IDSTRIPE_ORG_PRODUCT_IDNEXT_PUBLIC_ORGANIZATIONS_MIN_SELF_SERVE_SEATSSTRIPE_WEBHOOK_SECRET_BILLINGHow verified
Each variable was grepped across the entire repo (excluding
.env.exampleandturbo.json) and confirmed to have 0 code references. Variables that ARE still used (e.g.STRIPE_TEAM_MONTHLY_PRICE_ID,STRIPE_TEAM_PRODUCT_ID,STRIPE_ORG_TRIAL_DAYS,NEXT_PUBLIC_STRIPE_CREDITS_PRICE_ID,STRIPE_WEBHOOK_SECRET) were left untouched.turbo.jsonwas validated withpython3 -m json.tooland remains valid JSON.Test plan
grepconfirms 0 references to each removed var outside config filesturbo.jsonparses as valid JSON