fix: use APP_URL is defined as base url in mails

This commit is contained in:
jubnl
2026-04-03 03:44:45 +02:00
parent 4ff03a1f2c
commit d4e16ebe49

View File

@@ -44,6 +44,7 @@ function getWebhookUrl(): string | null {
}
function getAppUrl(): string {
if (process.env.APP_URL) return process.env.APP_URL;
const origins = process.env.ALLOWED_ORIGINS;
if (origins) {
const first = origins.split(',')[0]?.trim();