Replies: 3 comments
-
Can you share more on this and how this would work. I had some early thoughts on this when creating |
Beta Was this translation helpful? Give feedback.
-
Then you would import and default export this function into your import { configureReactEmail } from "react-email"
export default configureReactEmail({
srcDir: "src"
}) (Its the same as just having export default {} in Then it is possible to create a function/variable which just imports the default export of const config = (await import(`${projectRoot}/react-email.config.js`)).default |
Beta Was this translation helpful? Give feedback.
-
I'd love for us to stay away from this as much as we can: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After seeing a lot of issues relating to dev server configuration like #248 and #372, I think it makes sense to introduce a config file like
react-email.config.js
(similar to next havingnext.config.js
or vite withvite.config.ts
) on top of commandline args. This file could then also be typed which makes configuration more intuitive.I would also be happy to implement it :)
Beta Was this translation helpful? Give feedback.
All reactions