-
It seems that the nextjs app only checks the root directory I want to put it inside
The template is def correctly exported as: import * as React from 'react';
import { Html, Button, Hr, Text } from "@react-email/components";
export function MyTemplate(props) {
return (
<Html lang="en">
<Text>Some title</Text>
<Hr />
<Button href="https://example.com">Click me</Button>
</Html>
);
}
export default MyTemplate; |
Beta Was this translation helpful? Give feedback.
Answered by
venables
Jun 11, 2025
Replies: 1 comment
-
You can pass in For example: "scripts": {
"dev": "email dev -d src/emails",
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gabrielmfern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass in
-d
with the directory.For example:
Source