Setup fly.io deployments
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
import { PrintfulClient, WebflowClient } from "@blade-and-brawn/commerce";
|
||||
import {
|
||||
PRINTFUL_AUTH,
|
||||
PRINTFUL_STORE_ID,
|
||||
WEBFLOW_SITE_ID,
|
||||
WEBFLOW_COLLECTION_ID,
|
||||
WEBFLOW_AUTH,
|
||||
WEBFLOW_WEBHOOK_SECRET,
|
||||
} from "$env/static/private";
|
||||
import { env } from "$env/dynamic/private";
|
||||
import type { PageServerLoad } from "./$types";
|
||||
|
||||
const printful = new PrintfulClient({ token: PRINTFUL_AUTH, storeId: PRINTFUL_STORE_ID });
|
||||
const printful = new PrintfulClient({ token: env.PRINTFUL_AUTH, storeId: env.PRINTFUL_STORE_ID });
|
||||
const webflow = new WebflowClient({
|
||||
siteId: WEBFLOW_SITE_ID,
|
||||
collectionsId: WEBFLOW_COLLECTION_ID,
|
||||
token: WEBFLOW_AUTH,
|
||||
webhookSecret: WEBFLOW_WEBHOOK_SECRET,
|
||||
siteId: env.WEBFLOW_SITE_ID,
|
||||
collectionsId: env.WEBFLOW_COLLECTION_ID,
|
||||
token: env.WEBFLOW_AUTH,
|
||||
webhookSecret: env.WEBFLOW_WEBHOOK_SECRET,
|
||||
});
|
||||
|
||||
export const load = async ({ }: Parameters<PageServerLoad>[0]) => {
|
||||
|
||||
Reference in New Issue
Block a user