Skip to content

Commit 4ffc9f5

Browse files
committed
feat(mail): add resend as backup email sender
1 parent 44c73ee commit 4ffc9f5

6 files changed

Lines changed: 176 additions & 38 deletions

File tree

.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Environment
22
NODE_ENV="development"
33
APP_ENVIRONMENT="local"
4-
MAINTENANCE=false
4+
MAINTENANCE="false"
55

66
# API
77
API_BASE_URL="http://localhost"
@@ -15,10 +15,10 @@ COOKIE_DOMAIN="localhost"
1515
COOKIE_SECRET="super-secret-here"
1616
JWT_SECRET="super-secret-here"
1717

18-
# Flags
19-
ENABLE_EMAILS=false
20-
21-
# AWS
18+
# E-mails
19+
ENABLE_EMAILS="false"
20+
EMAIL_PROVIDER="ses"
21+
RESEND_KEY="resend-key"
2222
AWS_SES_REGION="aws-region"
2323
AWS_SES_ACCESS_KEY_ID="aws-access-key-id"
2424
AWS_SES_SECRET_ACCESS_KEY="aws-secret-access-key"
@@ -30,4 +30,4 @@ DB_PORT=3306
3030
DB_DATABASE="abnmo_dev"
3131
DB_USERNAME="abnmo_user"
3232
DB_PASSWORD="abnmo_password"
33-
DB_ROOT_PASSWORD="abnmo_root_password"
33+
DB_ROOT_PASSWORD="abnmo_root_password"

.env.test

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ COOKIE_DOMAIN="localhost"
1515
COOKIE_SECRET="test-cookie-secret-key-for-testing-only"
1616
JWT_SECRET="test-jwt-secret-key-for-testing-only"
1717

18-
# Flags
19-
ENABLE_EMAILS=false
20-
21-
# AWS
18+
# E-mails
19+
ENABLE_EMAILS="false"
20+
EMAIL_PROVIDER="ses"
21+
RESEND_KEY="resend-key"
2222
AWS_SES_REGION="aws-region"
23-
AWS_SES_ACCESS_KEY_ID="test-access-key"
24-
AWS_SES_SECRET_ACCESS_KEY="test-secret-key"
25-
AWS_SES_FROM_EMAIL="test@example.com"
23+
AWS_SES_ACCESS_KEY_ID="aws-access-key-id"
24+
AWS_SES_SECRET_ACCESS_KEY="aws-secret-access-key"
25+
AWS_SES_FROM_EMAIL="test@mail.com"
2626

2727
# Database
2828
DB_HOST="localhost"
2929
DB_PORT=3307
3030
DB_DATABASE="abnmo_test"
3131
DB_USERNAME="abnmo_user"
3232
DB_PASSWORD="abnmo_password"
33-
DB_ROOT_PASSWORD="abnmo_root_password"
33+
DB_ROOT_PASSWORD="abnmo_root_password"

0 commit comments

Comments
 (0)