Extract issue report email

This commit is contained in:
Leandro Facchinetti 2020-04-06 09:54:42 -04:00
parent 4950b2cffe
commit f2a2ad20e2
2 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,8 @@
"WEB_PORT": "8000", "WEB_PORT": "8000",
"EMAIL_PORT": "25", "EMAIL_PORT": "25",
"BASE_URL": "https://www.kill-the-newsletter.com", "BASE_URL": "https://www.kill-the-newsletter.com",
"EMAIL_DOMAIN": "kill-the-newsletter.com" "EMAIL_DOMAIN": "kill-the-newsletter.com",
"ISSUE_REPORT_EMAIL": "kill-the-newsletter@leafac.com"
} }
}, },
{ {

View File

@ -13,6 +13,8 @@ export const EMAIL_PORT = process.env.EMAIL_PORT ?? 2525;
export const BASE_URL = process.env.BASE_URL ?? "http://localhost:8000"; export const BASE_URL = process.env.BASE_URL ?? "http://localhost:8000";
export const EMAIL_DOMAIN = export const EMAIL_DOMAIN =
process.env.EMAIL_DOMAIN ?? "kill-the-newsletter.com"; process.env.EMAIL_DOMAIN ?? "kill-the-newsletter.com";
export const ISSUE_REPORT_EMAIL =
process.env.ISSUE_REPORT_EMAIL ?? "kill-the-newsletter@leafac.com";
export const webServer = express() export const webServer = express()
.use(express.static("static")) .use(express.static("static"))
@ -167,8 +169,7 @@ function Layout({ children }: { children: React.ReactNode }) {
<a href="https://github.com/leafac/www.kill-the-newsletter.com"> <a href="https://github.com/leafac/www.kill-the-newsletter.com">
Source Source
</a>{" "} </a>{" "}
·{" "} · <a href={`mailto:${ISSUE_REPORT_EMAIL}`}>Report an Issue</a>
<a href="mailto:kill-the-newsletter@leafac.com">Report an Issue</a>
</p> </p>
</footer> </footer>
</body> </body>