Skip to content

chore: remove unused Stripe billing env vars - #30623

Open
pethapixels-create wants to merge 1 commit into
calcom:mainfrom
pethapixels-create:chore/remove-unused-stripe-billing-env-vars
Open

pethapixels-create wants to merge 1 commit into
calcom:mainfrom
pethapixels-create:chore/remove-unused-stripe-billing-env-vars

Conversation

@pethapixels-create

Copy link
Copy Markdown

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.example and turbo.json.

Closes #30499

Removed variables

  • 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

How verified

Each variable was grepped across the entire repo (excluding .env.example and turbo.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.json was validated with python3 -m json.tool and remains valid JSON.

Test plan

  • grep confirms 0 references to each removed var outside config files
  • turbo.json parses as valid JSON
  • No runtime code paths affected (config-only change)

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
@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Cal.diy, @pethapixels-create! Thanks for opening this pull request.

A few things to keep in mind:

  • This is Cal.diy, not Cal.com. Cal.diy is a community-driven, fully open-source fork of Cal.com licensed under MIT. Your changes here will be part of Cal.diy — they will not be deployed to the Cal.com production app.
  • Please review our Contributing Guidelines if you haven't already.
  • Make sure your PR title follows the Conventional Commits format.

A maintainer will review your PR soon. Thanks for contributing!

@github-actions github-actions Bot added 🐛 bug Something isn't working ❗️ .env changes contains changes to env variables labels Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Removed unused Stripe billing, plan, and organization variables from .env.example and the relevant Turbo environment lists. The changes retain the listed team monthly price, team product, and credits price entries.

Severity of issue fixed: Low

Merge Risk: Minimal · up to f5efe

This config-only cleanup removes unused Stripe billing and plan variables from the example environment file and Turbo environment lists. No remaining code references them, so no runtime impact is expected. CI has not run yet because the PR needs a maintainer to add the run-ci label.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "chore: remove unused Stripe billing env vars" matches the main change. The PR removes 11 unused Stripe billing environment variables from .env.example and turbo.json, so the title names the…
Description check Passed The description states that it removes 11 environment variables that have no code references. It lists each removed variable, names the files changed (.env.example and turbo.json), and describes how t…
Linked Issues check Passed [#30499] requires removing 11 unused Stripe billing variables from .env.example and turbo.json, and keeping the Stripe payment app variables. At head, turbo.json globalEnv and the `@calcom/web…
Out of Scope Changes check Passed The PR changes only .env.example (-14 lines) and turbo.json (-12 lines), per the AI-generated summaries. All removals are of variables named in #30499 or the PR description. Retained Stripe paymen…
Full details: Title check

Explanation

The title "chore: remove unused Stripe billing env vars" matches the main change. The PR removes 11 unused Stripe billing environment variables from .env.example and turbo.json, so the title names the primary change in short form.

Full details: Description check

Explanation

The description states that it removes 11 environment variables that have no code references. It lists each removed variable, names the files changed (.env.example and turbo.json), and describes how the change was verified. It matches the changeset.

Full details: Linked Issues check

Explanation

[#30499] requires removing 11 unused Stripe billing variables from .env.example and turbo.json, and keeping the Stripe payment app variables. At head, turbo.json globalEnv and the @calcom/web#build, @calcom/website#build env lists do not contain the listed removed names (for example STRIPE_ORG_PRODUCT_ID, ORG_MONTHLY_CREDITS, STRIPE_WEBHOOK_SECRET_BILLING, NEXT_PUBLIC_IS_PREMIUM_NEW_PLAN, NEXT_PUBLIC_ORGANIZATIONS_MIN_SELF_SERVE_SEATS). The retained variables named in the PR (STRIPE_TEAM_MONTHLY_PRICE_ID, STRIPE_TEAM_PRODUCT_ID, STRIPE_ORG_TRIAL_DAYS, NEXT_PUBLIC_STRIPE_CREDITS_PRICE_ID, STRIPE_WEBHOOK_SECRET) remain in turbo.json. The whole-PR diff tool was unavailable, so the base-to-head removal was confirmed from the head file and the PR summary, not from a diff. The .env.example change was not read directly and rests on the PR summary. The claim of zero code references was not independently re-run; the issue and PR both state it. No coding requirement beyond config cleanup exists.

Full details: Out of Scope Changes check

Explanation

The PR changes only .env.example (-14 lines) and turbo.json (-12 lines), per the AI-generated summaries. All removals are of variables named in #30499 or the PR description. Retained Stripe payment app variables and NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE_MONTHLY remain in turbo.json, which matches the issue scope. No unrelated change was found. The whole-PR diff was unavailable, so exact line-level content of the edits was not verified beyond the head file and summaries.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eb549378-43e9-4909-8d1e-980547e24fdf
Commits

Reviewing files that changed from the base of the PR and between ae027bb and f5efeff.

Files selected for processing: 2

  • .env.example
  • turbo.json
Files with no reviewable changes: 2

  • .env.example
  • turbo.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working ❗️ .env changes contains changes to env variables size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove unused Stripe billing env vars

1 participant