moved page rendering to a different service and access is now behind

admin.DOMAIN
www.DOMAIN
db.DOMAIN
This commit is contained in:
Jakub Dorfman 2026-08-19 17:58:19 +02:00
parent c7f6b30b87
commit 1027da989e
126 changed files with 6356 additions and 1516 deletions

View file

@ -1,17 +0,0 @@
import Stripe from 'stripe';
import { env } from '$env/dynamic/private';
let stripe: Stripe | null = null;
export function getStripe(): Stripe {
if (!stripe) {
const key = env.STRIPE_SECRET_KEY;
if (!key) throw new Error('STRIPE_SECRET_KEY is not set');
stripe = new Stripe(key);
}
return stripe;
}
export function getCurrency(): string {
return env.STRIPE_CURRENCY || 'eur';
}