Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable react server-side rendering with image support #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azizur
Copy link
Contributor

@azizur azizur commented Jan 24, 2021

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: #136

@azizur azizur marked this pull request as ready for review January 30, 2021 15:39
@jayair
Copy link
Member

jayair commented Feb 17, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to import images
2 participants