Skip to content
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

react-email not pulling in .env variables #5

Open
artuze opened this issue Dec 30, 2024 · 0 comments
Open

react-email not pulling in .env variables #5

artuze opened this issue Dec 30, 2024 · 0 comments

Comments

@artuze
Copy link

artuze commented Dec 30, 2024

In case anyone comes looking for it...

If you're wondering why you can't get the NEXT_PUBLIC_SERVER_URL from the .env file to show up in the emails despite following the instructions in the video perfectly to copy it where told in package.json, you aren't alone.

Apparently, react-email changed things with 3.0 back in August 2024, so that path needs to be changed to ./node_modules/react-email/dist/preview for it to work as shown.

Took me way too long to find that one earlier today. 😄

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

No branches or pull requests

1 participant