From 765ef849035ca4f8b2253bb76d15be8e9a3e6763 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Wed, 11 Dec 2024 18:43:11 +0100 Subject: [PATCH] SELFSERVICE_URL --- .env.example | 2 +- README.md | 2 +- src/mailer.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index b180f2c..5a0dec3 100644 --- a/.env.example +++ b/.env.example @@ -8,4 +8,4 @@ DB_NAME=./test.sqlite NODE_ENV=production POSTALCODE_COUNTRYCODE=DE SEED_TEST_DATA=false -FRONTEND_URL=bla \ No newline at end of file +SELFSERVICE_URL=bla \ No newline at end of file diff --git a/README.md b/README.md index 038cac9..ea2200f 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ pnpm docs | SEED_TEST_DATA | Boolean | False | If you want the app to seed some example data set this to true | | MAILER_URL | String(Url) | N/A | The mailer's base url (no trailing slash) | | MAILER_KEY | String | N/A | The mailer's api key. | -| FRONTEND_URL | String(Url) | N/A | The link to frontend (no trailing slash) | +| SELFSERVICE_URL | String(Url) | N/A | The link to selfservice (no trailing slash) | | IMPRINT_URL | String(Url) | /imprint | The link to a imprint page for the system (Defaults to the frontend's imprint) | | PRIVACY_URL | String(Url) | /privacy | The link to a privacy page for the system (Defaults to the frontend's privacy page) | diff --git a/src/mailer.ts b/src/mailer.ts index 0a419b2..447df70 100644 --- a/src/mailer.ts +++ b/src/mailer.ts @@ -59,7 +59,7 @@ export class Mailer { data: { name: `${firstname} ${middlename} ${lastname}`, barcode_content: `${runner_id}`, - link: `${process.env.FRONTEND_URL}/profile/${token}` + link: `${process.env.SELFSERVICE_URL}/profile/${token}` } } }); @@ -90,7 +90,7 @@ export class Mailer { data: { name: `${firstname} ${middlename} ${lastname}`, barcode_content: `${runner_id}`, - link: `${process.env.FRONTEND_URL}/profile/${token}` + link: `${process.env.SELFSERVICE_URL}/profile/${token}` } } });