Skip to content

Commit

Permalink
fix: make email visible
Browse files Browse the repository at this point in the history
  • Loading branch information
gregermendle committed Nov 20, 2023
1 parent c63a426 commit 108786f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/example/app/emails/login-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Preview,
Text,
} from "@react-email/components";
import LinearLogo from "./assets/logo.png";
import LinearLogo from "~/emails/assets/logo.png";

interface LoginCodeProps {
code?: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/example/app/emails/reset-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Preview,
Text,
} from "@react-email/components";
import LinearLogo from "./assets/logo.png";
import LinearLogo from "~/emails/assets/logo.png";

interface ResetPasswordProps {
resetLink?: string;
Expand Down
2 changes: 2 additions & 0 deletions apps/example/app/routes/email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
resetPassword: ResetPassword,
},
{
// Dont do this in a typical app unless you want everyone to see your previews
allowedEnvs: ["production", "development", "test"],
renderer: async (Component) =>
renderAsync(<Component {...Component?.PreviewProps} />),
},
Expand Down

0 comments on commit 108786f

Please sign in to comment.