moved page rendering to a different service and access is now behind
admin.DOMAIN www.DOMAIN db.DOMAIN
This commit is contained in:
parent
c7f6b30b87
commit
1027da989e
126 changed files with 6356 additions and 1516 deletions
|
|
@ -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';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue