Skip to content

Commit 0b45338

Browse files
committed
Remove the bad RESEND_API_KEY from .env.example
1 parent 3fb41f6 commit 0b45338

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

.env.example

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# YOU MUST SET THESE VARIABLES
2-
# Resend is an email service used for signing in to Trigger.dev via a Magic Link.
3-
### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information.
4-
RESEND_API_KEY=<api_key>
5-
FROM_EMAIL=
6-
REPLY_TO_EMAIL=
7-
81
# YOU MIGHT LIKE TO MODIFY THESE VARIABLES
92
SESSION_SECRET=abcdef1234
103
MAGIC_LINK_SECRET=abcdef1234
@@ -16,17 +9,20 @@ APP_ORIGIN=http://localhost:3030
169
NODE_ENV=development
1710

1811
# OPTIONAL VARIABLES
19-
AUTH_GITHUB_CLIENT_ID=
20-
AUTH_GITHUB_CLIENT_SECRET=
12+
# This is used for logging in via GitHub. You can leave these commented out if you don't want to use GitHub for authentication.
13+
# AUTH_GITHUB_CLIENT_ID=
14+
# AUTH_GITHUB_CLIENT_SECRET=
15+
16+
# Resend is an email service used for signing in to Trigger.dev via a Magic Link.
17+
# Emails will print to the console if you leave these commented out
18+
### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information.
19+
# RESEND_API_KEY=<api_key>
20+
# FROM_EMAIL=
21+
# REPLY_TO_EMAIL=
2122

2223
# CLOUD VARIABLES
2324
POSTHOG_PROJECT_KEY=
2425
PLAIN_API_KEY=
25-
SEED_CLOUD=
26-
SEED_CLOUD_EMAIL=
27-
SEED_CLOUD_GITHUB_ACCESS_TOKEN=
28-
SEED_CLOUD_SLACK_ACCESS_TOKEN=
29-
SEED_CLOUD_USER_GITHUB_ACCESS_TOKEN=
3026
CLOUD_AIRTABLE_CLIENT_ID=
3127
CLOUD_AIRTABLE_CLIENT_SECRET=
3228
CLOUD_GITHUB_CLIENT_ID=

packages/emails/src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export class EmailClient {
5454
from: string;
5555
replyTo: string;
5656
}) {
57-
this.#client = config.apikey ? new Resend(config.apikey) : undefined;
57+
this.#client =
58+
config.apikey && config.apikey.startsWith("re_")
59+
? new Resend(config.apikey)
60+
: undefined;
5861
this.#imagesBaseUrl = config.imagesBaseUrl;
5962
this.#from = config.from;
6063
this.#replyTo = config.replyTo;

0 commit comments

Comments
 (0)