Phase4: Stripe
Some checks failed
Build and Push / build (push) Failing after 53s

This commit is contained in:
2026-05-24 23:48:39 +02:00
parent a680d6de9f
commit 262250564a

View File

@@ -29,9 +29,13 @@
import Stripe from "stripe"; import Stripe from "stripe";
import type { Invoice } from "@/types"; import type { Invoice } from "@/types";
// Pinned API version. Bump deliberately, not via dependency update. // Pinned API version. This is a string-literal type in the Stripe
// Keep this matched to the stripe-node major version in package.json. // SDK — the explicit `Stripe.LatestApiVersion` annotation forces a
const STRIPE_API_VERSION = "2026-03-25.dahlia" as const; // compile error when the installed SDK ships with a different pin,
// so a `npm update` that bumps Stripe to a new API version gets
// caught here rather than at runtime. Bump this string deliberately
// alongside the SDK upgrade and review the API changelog.
const STRIPE_API_VERSION: Stripe.LatestApiVersion = "2026-04-22.dahlia";
// Cache the client across hot reloads / serverless invocations. // Cache the client across hot reloads / serverless invocations.
// We don't instantiate at module load because some build steps run // We don't instantiate at module load because some build steps run