Skip to content

Commit

Permalink
7
Browse files Browse the repository at this point in the history
  • Loading branch information
futurGH committed Dec 23, 2023
1 parent 2de5e56 commit f653745
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/routes/api/contact.server.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { SESClient, SendEmailCommand } from "@aws-sdk/client-ses";
import type { HydrogenRequest } from "@shopify/hydrogen";

const client = new SESClient({
credentials: {
accessKeyId: Oxygen.env.SES_ACCESS_KEY_ID,
secretAccessKey: Oxygen.env.SES_ACCESS_KEY,
},
region: "us-east-1",
});

export async function api(request: HydrogenRequest) {
const client = new SESClient({
credentials: {
accessKeyId: Oxygen.env.SES_ACCESS_KEY_ID,
secretAccessKey: Oxygen.env.SES_ACCESS_KEY,
},
region: "us-east-1",
});
console.log(request);
console.log("Oxygen");
console.log(JSON.stringify(Oxygen));
Expand Down

0 comments on commit f653745

Please sign in to comment.