parent
ada679823c
commit
bb9bad6d90
@ -14,8 +14,8 @@ export const config = {
|
|||||||
app_url: process.env.APP_URL || "http://localhost:8080",
|
app_url: process.env.APP_URL || "http://localhost:8080",
|
||||||
privacy_url: process.env.PRIVACY_URL || "/privacy",
|
privacy_url: process.env.PRIVACY_URL || "/privacy",
|
||||||
imprint_url: process.env.IMPRINT_URL || "/imprint",
|
imprint_url: process.env.IMPRINT_URL || "/imprint",
|
||||||
mailer_url: process.env.MAILER_URL || "http://localhost:8080/mailer",
|
mailer_url: process.env.MAILER_URL || "",
|
||||||
mailer_key: process.env.MAILER_KEY || "pleasesetme"
|
mailer_key: process.env.MAILER_KEY || ""
|
||||||
}
|
}
|
||||||
let errors = 0
|
let errors = 0
|
||||||
if (typeof config.internal_port !== "number") {
|
if (typeof config.internal_port !== "number") {
|
||||||
@ -24,6 +24,9 @@ if (typeof config.internal_port !== "number") {
|
|||||||
if (typeof config.development !== "boolean") {
|
if (typeof config.development !== "boolean") {
|
||||||
errors++
|
errors++
|
||||||
}
|
}
|
||||||
|
if (config.mailer_url == "" || config.mailer_key == "") {
|
||||||
|
errors++;
|
||||||
|
}
|
||||||
function getPhoneCodeLocale(): CountryCode {
|
function getPhoneCodeLocale(): CountryCode {
|
||||||
return (process.env.PHONE_COUNTRYCODE as CountryCode);
|
return (process.env.PHONE_COUNTRYCODE as CountryCode);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user