Skip to content

Commit

Permalink
fix: fix logo url in email
Browse files Browse the repository at this point in the history
path.join does not work for URLs
  • Loading branch information
gregberge committed Oct 24, 2024
1 parent e85dcbf commit 3535528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/backend/src/email/welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as path from "node:path";
import * as React from "react";
import {
Body,
Expand Down Expand Up @@ -74,7 +73,7 @@ export const WelcomeEmail = ({ baseUrl }: { baseUrl: string }) => {
<Container style={container}>
<Section style={{ marginTop: 32 }}>
<Img
src={path.join(baseUrl, "/static/emails/argos-logo.png")}
src={String(new URL("/static/emails/argos-logo.png", baseUrl))}
width="40"
height="40"
alt="Argos"
Expand Down

0 comments on commit 3535528

Please sign in to comment.