feat: Add CDN support (#1817)

* chore: CSP

* chore: Optionally use CDN for serving images
This commit is contained in:
Tom Moor
2021-01-16 11:12:10 -08:00
committed by GitHub
parent 1fd2ec31fd
commit 522df125aa
16 changed files with 77 additions and 28 deletions

View File

@ -3,6 +3,8 @@ import { Table, TBody, TR, TD } from "oy-vey";
import * as React from "react";
import EmptySpace from "./EmptySpace";
const url = process.env.CDN_URL || process.env.URL;
export default () => {
return (
<Table width="100%">
@ -12,7 +14,7 @@ export default () => {
<EmptySpace height={40} />
<img
alt="Outline"
src={`${process.env.URL}/email/header-logo.png`}
src={`${url}/email/header-logo.png`}
height="48"
width="48"
/>