feat: enable react server-side rendering with image support
This is my first PR, be gentle with your review comments.
I wanted to use React component for HTML emails sent via Simple Email Service (Amazon SES). This change allows me to render React Components into static HTML as part of the email body.
More efforts are need:
- Image support is currently very basic. SVG Image as React Component is not supported/fully tested.
- Ideally, you would want to upload the images to S3 bucket and have it fronted by CloudFront.
This probably not an optimal solution since not all projects using serverless-bundle will need this capability. I would love to have this enabled via config/option in serverless.yml. Even then, I am not sure how'd avoid installing additional packages?
Your feedback is really appreciated.
fixes: https://github.com/AnomalyInnovations/serverless-bundle/issues/136
Thanks for the PR @azizur. Appreciate the effort.
Ideally, you would want to upload the images to S3 bucket and have it fronted by CloudFront.
This might be outside the scope of bundle.
SVG Image as React Component is not supported/fully tested.
Can you elaborate on this?
And what else would we need to do to support React server side rendering?