Reference email image by cid for self hosted instances (#3957)

This commit is contained in:
Tom Moor
2022-08-14 16:50:49 +01:00
committed by GitHub
parent d8b4814aa9
commit 4d0473c22c
2 changed files with 16 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import env from "@server/env";
import EmptySpace from "./EmptySpace";
const url = env.CDN_URL ?? env.URL;
const isCloudHosted = env.DEPLOYMENT === "hosted";
export default () => {
return (
@@ -14,7 +15,11 @@ export default () => {
<EmptySpace height={40} />
<img
alt="Outline"
src={`${url}/email/header-logo.png`}
src={
isCloudHosted
? `${url}/email/header-logo.png`
: "cid:header-image"
}
height="48"
width="48"
/>