rebrand to useSend (#210)

This commit is contained in:
KM Koushik
2025-09-03 08:21:55 +10:00
committed by GitHub
parent b1a59d2705
commit 07c53d3f58
219 changed files with 1349 additions and 2835 deletions
@@ -18,13 +18,13 @@ export async function GET(request: NextRequest) {
if (type === "otp") {
html = await renderOtpEmail({
otpCode: "ABC123",
loginUrl: "https://app.unsend.dev/login?token=abc123",
hostName: "Unsend",
loginUrl: "https://app.usesend.com/login?token=abc123",
hostName: "useSend",
});
} else if (type === "invite") {
html = await renderTeamInviteEmail({
teamName: "My Awesome Team",
inviteUrl: "https://app.unsend.dev/join-team?inviteId=123",
inviteUrl: "https://app.usesend.com/join-team?inviteId=123",
inviterName: "John Doe",
role: "admin",
});
+4 -3
View File
@@ -1,4 +1,4 @@
import { EmailRenderer } from "@unsend/email-editor/src/renderer";
import { EmailRenderer } from "@usesend/email-editor/src/renderer";
export const dynamic = "force-dynamic";
@@ -11,7 +11,8 @@ export async function POST(req: Request) {
const html = await renderer.render({
shouldReplaceVariableValues: true,
linkValues: {
"{{unsend_unsubscribe_url}}": "https://unsend.com/unsubscribe",
"{{usesend_unsubscribe_url}}": "https://usesend.com/unsubscribe",
"{{unsend_unsubscribe_url}}": "https://usesend.com/unsubscribe",
},
});
console.log(`Time taken: ${Date.now() - time}ms`);
@@ -34,7 +35,7 @@ export async function POST(req: Request) {
"Access-Control-Allow-Methods": "POST, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type",
},
}
},
);
}
}