ixahmedxi / orbitkit

🚀 Orbitkit is a monorepo starterkit aiming to be the foundation you build your next startup or big idea upon.
https://orbitkit.dev
MIT License
799 stars 46 forks source link

Resend + React Email integration #14

Open ixahmedxi opened 5 months ago

ixahmedxi commented 5 months ago

As a requirement for more authentication method (for example email + verification codes authentication) orbitkit needs to have some way of sending emails, Resend and it's library, react email, seems like the best option here.

We probably should have a packages/emails that will configure resend and export the resend instance to be used in apps as well as the email templates using react email. The package should be internal as that it will be used in the web application and we can utilise transpileModules in next.config.js to avoid the build step.

Steps to work:

  1. copy packages/core into new directory packages/emails
  2. do your thing with adding resend and react email
  3. add @orbitkit/emails to list of transpileModules in next.config.js file in apps/web
  4. profit
Mahmoudgalalz commented 5 months ago

can you add more details, about how would you like to have React Email, and Resend

I can work on it

ixahmedxi commented 5 months ago

can you add more details, about how would you like to have React Email, and Resend

I can work on it

@Mahmoudgalalz thanks for the heads up, I have now added more information about this.

Mahmoudgalalz commented 5 months ago

Cool, I will define a template to use and make integration with it for nextjs

duttaoindril commented 5 months ago

https://github.com/ixahmedxi/orbitkit/issues/9#issuecomment-2081902464