Skip to content

Can't render image on localhost #1292

Closed Answered by gabrielmfern
GuysmoB asked this question in Q&A
Discussion options

You must be logged in to vote

Because you are running from localhost, your process.env.VERCEL_URL is not being filled in for the image. You'll probably only be able to test this on emails if you make a preview deployment to Vercel as it will have that filled in.

On another note, it seems like you're using the older version of react-email. So for anyone coming across this, we have since changed the static directory to be inside your emails as of 2.0.0, the create-email is still outdated on this, with the exception of canary, as of the date of posting this.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gabrielmfern
Comment options

You must be logged in to vote
1 reply
@gabrielmfern
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants