fix: docker build requires smtp host (#672)

set a default for smtp host and add an action
for testing docker builds on each pull request
This commit is contained in:
Lucas Smith
2023-11-22 16:26:39 +11:00
committed by GitHub
parent be0fe079a3
commit 9444e0cc67
6 changed files with 23 additions and 8 deletions

View File

@ -42,12 +42,8 @@ const getTransport = () => {
});
}
if (!process.env.NEXT_PRIVATE_SMTP_HOST) {
throw new Error('SMTP transport requires NEXT_PRIVATE_SMTP_HOST');
}
return createTransport({
host: process.env.NEXT_PRIVATE_SMTP_HOST,
host: process.env.NEXT_PRIVATE_SMTP_HOST ?? 'localhost:2500',
port: Number(process.env.NEXT_PRIVATE_SMTP_PORT) || 587,
secure: process.env.NEXT_PRIVATE_SMTP_SECURE === 'true',
auth: {