Skip to content

Commit

Permalink
chore: fix email-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Oct 24, 2024
1 parent 3535528 commit cd3192a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/backend/src/email/express.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { render } from "@react-email/render";
import { Router } from "express";

import config from "@/config/index.js";
import { asyncHandler } from "@/web/util.js";

import { WelcomeEmail } from "./welcome.js";
Expand All @@ -10,7 +11,9 @@ const router = Router();
router.get(
"/welcome",
asyncHandler(async (_req, res) => {
const html = await render(<WelcomeEmail baseUrl="/" />);
const html = await render(
<WelcomeEmail baseUrl={config.get("server.url")} />,
);
res.send(html);
}),
);
Expand Down

0 comments on commit cd3192a

Please sign in to comment.