mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-14 19:43:55 +00:00
refactor(#29): centralise stripe client
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { PUBLIC_STRIPE_SECRET_KEY } from '$env/static/public';
|
||||
import stripe from 'stripe';
|
||||
const stripeClient = new stripe(PUBLIC_STRIPE_SECRET_KEY);
|
||||
import { stripe as stripeClient } from '$lib/utils/stripe';
|
||||
|
||||
export const GET = async () => {
|
||||
const products = await stripeClient.products.list({
|
||||
|
||||
Reference in New Issue
Block a user