diff --git a/src/routes/api/contact.server.ts b/src/routes/api/contact.server.ts index 23f9a0d..c1e37bb 100644 --- a/src/routes/api/contact.server.ts +++ b/src/routes/api/contact.server.ts @@ -3,10 +3,6 @@ import type { HydrogenRequest } from "@shopify/hydrogen"; const env: Record = typeof Oxygen !== "undefined" && "env" in Oxygen ? Oxygen.env : import.meta.env; -console.log({ - accessKeyId: env.SES_ACCESS_KEY_ID, - secretAccessKey: env.SES_ACCESS_KEY, -}); const client = new SESClient({ credentials: { accessKeyId: env.SES_ACCESS_KEY_ID, @@ -17,6 +13,12 @@ const client = new SESClient({ export async function api(request: HydrogenRequest) { console.log(request); + console.log( + JSON.stringify({ + accessKeyId: env.SES_ACCESS_KEY_ID, + secretAccessKey: env.SES_ACCESS_KEY, + }), + ); if (request.method === "GET") return new Response(null, { status: 302, headers: { Location: "/contact-us" } }); if (request.method !== "POST") return new Response(null, { status: 405 });