Skip to content

Commit

Permalink
chore/template-vars
Browse files Browse the repository at this point in the history
Move postmark template variables to env.
  • Loading branch information
marmorse committed Nov 28, 2022
1 parent 9b9590a commit 4708ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ SMTP_PORT=25
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=Taxonomy <[email protected]>
const POSTMARK_SIGN_IN_TEMPLATE =
const POSTMARK_ACTIVATION_TEMPLATE =

# -----------------------------------------------------------------------------
# Subscriptions (Stripe)
Expand Down
4 changes: 2 additions & 2 deletions lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4708ffe

Please sign in to comment.