mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
fix(#14): Fix accessing private env var
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
import { createClient } from '@supabase/supabase-js';
|
import { createClient } from '@supabase/supabase-js';
|
||||||
import stripe from 'stripe';
|
import stripe from 'stripe';
|
||||||
import type { Database, Tables, TablesInsert } from '$types/supabase';
|
import type { Database, Tables, TablesInsert } from '$types/supabase';
|
||||||
import {
|
import { PUBLIC_SUPABASE_URL, PUBLIC_STRIPE_SECRET_KEY } from '$env/static/public';
|
||||||
PUBLIC_SUPABASE_URL,
|
import { SUPABASE_SERVICE_ROLE_KEY } from '$env/static/private';
|
||||||
SUPABASE_SERVICE_ROLE_KEY,
|
|
||||||
PUBLIC_STRIPE_SECRET_KEY
|
|
||||||
} from '$env/static/public';
|
|
||||||
|
|
||||||
const toDateTime = (secs: number) => {
|
const toDateTime = (secs: number) => {
|
||||||
const t = new Date(+0); // Unix epoch start.
|
const t = new Date(+0); // Unix epoch start.
|
||||||
|
|||||||
Reference in New Issue
Block a user