-
-
Notifications
You must be signed in to change notification settings - Fork 1
Check in current progress migrating to resend #857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
| console.log('🤖 Calling Claude for content expansion...') | ||
|
|
||
| const response = await anthropic.messages.create({ | ||
| model: 'claude-sonnet-4-20250514', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| bulletPoints: newsletter.bulletPoints, | ||
| expandedContent, | ||
| model: 'claude-sonnet-4', | ||
| tokensUsed: response.usage.output_tokens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <Text style={footerText}> | ||
| <Link href="{{{RESEND_UNSUBSCRIBE_URL}}}" style={unsubscribeLink}> | ||
| Unsubscribe | ||
| </Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Unsubscribe Link Syntax Error
The unsubscribe link in NewsletterTemplate.tsx uses {{{RESEND_UNSUBSCRIBE_URL}}}. This syntax isn't recognized by Resend's templating system (which expects {{unsubscribe_url}}), causing the literal string to render in the email. This prevents users from unsubscribing.
Note
Adds a full Resend-powered newsletter system (DB models, APIs, webhooks, scripts, email template) and a mobile-friendly admin UI with AI content expansion.
Newsletteradmin endpoints:create,list,[id]/expand,[id]/preview,[id]/send,[id]/stats, and[id]delete.email.sent/delivered/opened/clicked/bounced,contact.created/deleted) updating analytics/subscriptions.Newsletter,NewsletterSubscription, andNewsletterExpansionmodels with analytics fields and indexes./admin/newsletterwith components:CreateNewsletterModal(voice input),NewsletterCard,PreviewModal,StatsModal.NewsletterTemplateandmdx-to-htmlutility for converting MDX to email-safe HTML.scripts/newsletter/export-emailoctopus-contacts.ts(CSV export + DB sync) andimport-to-resend.ts(batched import to Resend + DB update).resend,@anthropic-ai/sdk,@react-email/*,@react-email/render,marked, and related rehype/lockfile updates.Written by Cursor Bugbot for commit 285bace. This will update automatically on new commits. Configure here.