Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix plain + resend

Steven Tey4b4b0e95bb63
diff --git a/apps/web/app/api/callback/plain/route.ts b/apps/web/app/api/callback/plain/route.ts
index 16cf7f341e..d836f4baf3 100644
--- a/apps/web/app/api/callback/plain/route.ts
+++ b/apps/web/app/api/callback/plain/route.ts
@@ -110,6 +110,7 @@ export async function POST(req: NextRequest) {
}
const {
+ id,
name,
slug,
plan,
@@ -139,6 +140,10 @@ export async function POST(req: NextRequest) {
{
key: "workspace",
components: [
+ ...plainCopySection({
+ label: "Workspace ID",
+ value: id,
+ }),
...plainCopySection({
label: "Workspace Name",
value: name,
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.ts
index be42fd30b5..af2fc8d3ea 100644
--- a/apps/web/lib/auth/options.ts
+++ b/apps/web/lib/auth/options.ts
@@ -518,8 +518,9 @@ export const authOptions: NextAuthOptions = {
Promise.allSettled([
subscribe({ email, name: user.name || undefined }),
sendEmail({
- subject: "Welcome to Dub.co!",
email,
+ replyTo: "[email protected]",
+ subject: "Welcome to Dub.co!",
react: WelcomeEmail({
email,
name: user.name || null,