Can't render image on localhost #1292
-
Hi, Any idea ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Because you are running from localhost, your On another note, it seems like you're using the older version of |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response. Unfortunately, I cannot upgrade to the latest version due to a bug with Next.js. |
Beta Was this translation helpful? Give feedback.
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 thestatic
directory to be inside youremails
as of2.0.0
, thecreate-email
is still outdated on this, with the exception of canary, as of the date of posting this.