deploy that shit

This commit is contained in:
m5r
2022-06-27 02:26:06 +02:00
parent f034373406
commit d001fba764
8 changed files with 131 additions and 106 deletions

View File

@ -20,10 +20,6 @@ invariant(
`Please define the "AWS_SES_FROM_EMAIL" environment variable`,
);
invariant(typeof process.env.REDIS_URL === "string", `Please define the "REDIS_URL" environment variable`);
invariant(
typeof process.env.TWILIO_AUTH_TOKEN === "string",
`Please define the "TWILIO_AUTH_TOKEN" environment variable`,
);
invariant(
typeof process.env.MASTER_ENCRYPTION_KEY === "string",
`Please define the "MASTER_ENCRYPTION_KEY" environment variable`,
@ -65,9 +61,6 @@ export default {
sentry: {
dsn: process.env.SENTRY_DSN,
},
twilio: {
authToken: process.env.TWILIO_AUTH_TOKEN,
},
webPush: {
privateKey: process.env.WEB_PUSH_VAPID_PRIVATE_KEY,
publicKey: process.env.WEB_PUSH_VAPID_PUBLIC_KEY,

View File

@ -23,11 +23,11 @@ export const voiceUrl = `${serverConfig.app.baseUrl}/webhook/call`;
export function getTwiMLName() {
switch (serverConfig.app.baseUrl) {
case "local.shellphone.app":
case "https://local.shellphone.app":
return "Shellphone LOCAL";
case "dev.shellphone.app":
case "https://dev.shellphone.app":
return "Shellphone DEV";
case "www.shellphone.app":
case "https://www.shellphone.app":
return "Shellphone";
}
}