fix: try removing jsx usage

This commit is contained in:
Scott Wilson
2025-05-02 11:42:20 -07:00
parent 8ad334b3ab
commit 717c947e53
2 changed files with 6 additions and 2 deletions

View File

@@ -130,7 +130,11 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
}
const htmlToSend = await render(
<EmailTemplate {...substitutions} isCloud={appCfg.isCloud} siteUrl={appCfg.SITE_URL} />
React.createElement(EmailTemplate, {
...substitutions,
isCloud: appCfg.isCloud,
siteUrl: appCfg.SITE_URL
})
);
if (isSmtpOn) {

View File

@@ -26,7 +26,7 @@
"paths": {
"@app/*": ["./src/*"]
},
"jsx": "react"
"jsx": "react-jsx"
},
"include": ["src/**/*", "scripts/**/*", "e2e-test/**/*", "./.eslintrc.js", "./tsup.config.js"],
"exclude": ["node_modules"]