Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: use APP_URL is defined as base url in mails

jubnld4e16ebe49c6
diff --git a/server/src/services/notifications.ts b/server/src/services/notifications.ts
index 06f5f76b4..b25e187c4 100644
--- a/server/src/services/notifications.ts
+++ b/server/src/services/notifications.ts
@@ -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();