Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: try removing jsx usage

Scott Wilson717c947e53ff
diff --git a/backend/src/services/smtp/smtp-service.tsx b/backend/src/services/smtp/smtp-service.ts
similarity index 97%
rename from backend/src/services/smtp/smtp-service.tsx
rename to backend/src/services/smtp/smtp-service.ts
index d3ab3ecda7..dfb8320a30 100644
--- a/backend/src/services/smtp/smtp-service.tsx
+++ b/backend/src/services/smtp/smtp-service.ts
@@ -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) {
diff --git a/backend/tsconfig.json b/backend/tsconfig.json
index 3d78132577..523e6de5be 100644
--- a/backend/tsconfig.json
+++ b/backend/tsconfig.json
@@ -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"]