FRONTEND_URL env

This commit is contained in:
Philipp Dormann 2024-12-11 18:40:21 +01:00
parent 6eff243803
commit 296ba8ddab
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
3 changed files with 5 additions and 3 deletions

View File

@ -7,4 +7,5 @@ DB_PASSWORD=bla
DB_NAME=./test.sqlite
NODE_ENV=production
POSTALCODE_COUNTRYCODE=DE
SEED_TEST_DATA=false
SEED_TEST_DATA=false
FRONTEND_URL=bla

View File

@ -59,6 +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) |
| 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) |

View File

@ -59,7 +59,7 @@ export class Mailer {
data: {
name: `${firstname} ${middlename} ${lastname}`,
barcode_content: `${runner_id}`,
link: 'https://portal.lauf-fuer-kaya.de/profile/' + token
link: `${process.env.FRONTEND_URL}/profile/${token}`
}
}
});
@ -90,7 +90,7 @@ export class Mailer {
data: {
name: `${firstname} ${middlename} ${lastname}`,
barcode_content: `${runner_id}`,
link: 'https://portal.lauf-fuer-kaya.de/profile/' + token
link: `${process.env.FRONTEND_URL}/profile/${token}`
}
}
});