Skip to content

Commit fe6f9cf

Browse files
committed
fix: remove warning for missing Stripe environment variables
- Eliminated the console warning for unconfigured Stripe environment variables (STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET) to streamline the initialization process. - This change enhances the clarity of the code by focusing on the successful creation of the Stripe instance.
1 parent 2624b5f commit fe6f9cf

File tree

1 file changed

+0
-4
lines changed
  • apps/app/src/actions/organization/lib

1 file changed

+0
-4
lines changed

apps/app/src/actions/organization/lib/stripe.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ if (env.STRIPE_SECRET_KEY && env.STRIPE_WEBHOOK_SECRET) {
99
stripe = new Stripe(env.STRIPE_SECRET_KEY, {
1010
apiVersion: "2025-02-24.acacia",
1111
});
12-
} else {
13-
console.warn(
14-
"Stripe environment variables (STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET) are not fully configured. Stripe functionality will be disabled.",
15-
);
1612
}
1713

1814
export { stripe };

0 commit comments

Comments
 (0)