Replies: 1 comment
-
We did already think of this kind of thing and have a solution implemented for it, just haven't quite got around to documenting it. Lines 86 to 103 in 7cbf829 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Background
Scenario:
I have a react-email template file, called
SendWeeklyDigest.tsx
. I have another file calledsendWeeklyDigest.ts
, which fetches some data, generates the email body via the template, then sends the email.I would like to group my concerns by function execution. So those two files both live in a folder
digests
. This isn'tThis isn't possible at the moment, as the only way to store react-email template files in a repository (as I understand it), is by having one single folder that is only allowed to contain react-email templates.
Proposal
Add
--include
option to dev server command that allows specifying where my react-email templates live.And then suggesting files as templates, e.g.
SendWeeklyDigest.template.tsx
orSendWeeklyDigest.template.tsx
Then the dev server command would be
email dev --include src/email/*.template.tsx --port 3003
Beta Was this translation helpful? Give feedback.
All reactions