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:
- copy
packages/core into new directory packages/emails
- do your thing with adding resend and react email
- add
@orbitkit/emails to list of transpileModules in next.config.js file in apps/web
- profit
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/emailsthat 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:
packages/coreinto new directorypackages/emails@orbitkit/emailsto list of transpileModules in next.config.js file inapps/web