Export command unexpectedly deleting files #2648
daniel-lujan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
I have an backend application and I am migrating from old manual email templates that are in raw HTML. The reason in my case to use the
exportcommand, is because the backend is written in Python, so I can't easily render the templates at run time.We are not migrating all the current templates yet, but we are starting to use React Email for the new ones. Therefore, we want the old HTML templates to co-exist with HTML files generated by
exportin the same directory.The issue is that the command deletes all other HTML files that do not correspond with the React emails.
Proposal
We ended up adding an small script into the build pipeline to copy the files from a separate directory (specified with
--outDir) into a combined directory with the old templates.It would be nice to have a simple flag/option to prevent the deletion of other files in the outDir. Even more, I think that should be the default behavior, what is the reason for deleting other files?
Beta Was this translation helpful? Give feedback.
All reactions