I tried putting this at the top of my React component\'s tsx file:
require(\'dotenv/config\'); const slackUrl = process.env.JOIN_URL;