Skip to content

Conversation

jordanhunt22
Copy link
Collaborator

Cleans up the resend component docs by:

  • removing unnecessary info
  • pass in an example with test mode off, which actually sends emails
  • remove the RESEND_DOMAIN from setup
  • remove the webhook env variable from the default setup

Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chef ✅ Ready (Inspect) Visit Preview Jul 8, 2025 11:14pm

Copy link
Contributor

@emmaling27 emmaling27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm i'm still getting

Uncaught Error: Resend API error: {"statusCode":403,"message":"The domains  are not verified. Please, add and verify your domains on https://resend.com/domains","name":"validation_error"}

This is what I was saying I was running into that made me think the resend domain didn't "just work"

usingOpenAi: modelProvider == 'OpenAI',
usingGoogle: modelProvider == 'Google',
resendProxyEnabled: getEnv('RESEND_PROXY_ENABLED') == '1',
resendProxyEnabled: !featureFlags.enableResend && getEnv('RESEND_PROXY_ENABLED') == '1',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea

@jordanhunt22
Copy link
Collaborator Author

hmm i'm still getting ```Uncaught Error: Resend API error: {"statusCode":403,"message":"The domains are not verified. Please, add and verify your domains on https://resend.com/domains","name":"validation_error"}

did anything show up in your email?

@emmaling27
Copy link
Contributor

emmaling27 commented Jul 8, 2025

hmm i'm still getting ```Uncaught Error: Resend API error: {"statusCode":403,"message":"The domains are not verified. Please, add and verify your domains on https://resend.com/domains","name":"validation_error"}

did anything show up in your email?

no, here's a share link https://chef-git-jordan-cleanup-resend-component.previews.convex.dev/share/e512b1
looks like it's using the right domain "Resend <[email protected]>",

and the app makes it look like it is sent in the UI
Screenshot 2025-07-08 at 4 31 05 PM

@emmaling27
Copy link
Contributor

hmm i'm still getting ```Uncaught Error: Resend API error: {"statusCode":403,"message":"The domains are not verified. Please, add and verify your domains on https://resend.com/domains","name":"validation_error"}

did anything show up in your email?

no, here's a share link https://chef-git-jordan-cleanup-resend-component.previews.convex.dev/share/e512b1 looks like it's using the right domain "Resend <[email protected]>",

and the app makes it look like it is sent in the UI Screenshot 2025-07-08 at 4 31 05 PM

@ikhare the resend domain doesn't work if you already have a verified domain in your account (I do for a personal project). So when I use the resend component with chef, it fails. we could branch on whether you are new to resend or if you already have a verified domain - the AI agent can ask the user and from there prompt for the second environment variable for your domain

I think we should do something about this, open to ideas, because it's also a footgun if you do add a registered domain it stops working and it's not at all obvious via the UI generated in the app. maybe that's a separate problem with the UI though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants