feat: full studio build -- light theme, canvas thumbnails, i18n (fa/en)

This commit is contained in:
Soroush.Asadi
2026-05-24 17:37:21 +03:30
parent d962483359
commit c61f587767
295 changed files with 29797 additions and 265 deletions
+20
View File
@@ -0,0 +1,20 @@
import Stripe from "stripe";
let stripeClient: Stripe | null = null;
export function getStripe(): Stripe {
if (!stripeClient) {
const secretKey = process.env.STRIPE_SECRET_KEY;
if (!secretKey) {
throw new Error("Missing STRIPE_SECRET_KEY environment variable.");
}
stripeClient = new Stripe(secretKey, {
apiVersion: "2026-04-22.dahlia",
typescript: true,
});
}
return stripeClient;
}