-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move email
from
field to env variables
- Loading branch information
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,7 @@ async function prepareEmail<T extends TemplateData>({ | |
}: PrepareEmailProps<T>): Promise<PreparedEmail> { | ||
const emailRenderProps = { ...templateProps, APP_URL: env.APP_URL } | ||
|
||
const from = 'Interval <[email protected]>' | ||
const from = env.EMAIL_FROM | ||
const subject = subjectBuilder(templateProps) | ||
const html = await emailTemplate.render(template, emailRenderProps) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ const schema = z.object({ | |
|
||
// emails | ||
POSTMARK_API_KEY: z.string().optional(), | ||
EMAIL_FROM: z.string().optional().default('Interval <[email protected]>'), | ||
|
||
// authentication | ||
WORKOS_API_KEY: z.string().optional(), | ||
|