From 4708ffef9e31e08139a15824a63492c59ebf6589 Mon Sep 17 00:00:00 2001 From: Marshal Morse Date: Mon, 28 Nov 2022 16:17:32 -0600 Subject: [PATCH] chore/template-vars Move postmark template variables to env. --- .env.example | 2 ++ lib/auth.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 72fb2719..d496ba16 100644 --- a/.env.example +++ b/.env.example @@ -24,6 +24,8 @@ SMTP_PORT=25 SMTP_USER= SMTP_PASSWORD= SMTP_FROM=Taxonomy +const POSTMARK_SIGN_IN_TEMPLATE = +const POSTMARK_ACTIVATION_TEMPLATE = # ----------------------------------------------------------------------------- # Subscriptions (Stripe) diff --git a/lib/auth.ts b/lib/auth.ts index 7bea9034..3a079505 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -8,8 +8,8 @@ import { db } from "@/lib/db" const postmarkClient = new Client(process.env.POSTMARK_API_TOKEN) -const POSTMARK_SIGN_IN_TEMPLATE = 29559329 -const POSTMARK_ACTIVATION_TEMPLATE = 29559329 +const POSTMARK_SIGN_IN_TEMPLATE = process.env.POSTMARK_SIGN_IN_TEMPLATE +const POSTMARK_ACTIVATION_TEMPLATE = process.env.POSTMARK_ACTIVATION_TEMPLATE export const authOptions: NextAuthOptions = { // huh any! I know.