Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
123456789101112131415import type { Stripe as StripeProps } from "@stripe/stripe-js";import { loadStripe } from "@stripe/stripe-js";
import { env } from "../../env";
let stripePromise: Promise<StripeProps | null>;
export const getStripe = () => { if (!stripePromise) { stripePromise = loadStripe(env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY); }
return stripePromise;};