All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
- Remove unused NextAuthOptions import, use inferred types - Add 'as const' to session strategy - Add explicit callback parameter types with optional properties - Update Stripe API version to 2025-11-17.clover - Make Stripe and Resend initialization conditional for build time - Update next-auth.d.ts type declarations
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
import Stripe from "stripe";
|
|
|
|
const stripeSecretKey = process.env.STRIPE_SECRET_KEY;
|
|
|
|
export const stripe = stripeSecretKey
|
|
? new Stripe(stripeSecretKey, {
|
|
apiVersion: "2025-11-17.clover",
|
|
typescript: true,
|
|
})
|
|
: null as unknown as Stripe; // Will fail at runtime if not configured, but allows build
|