For some reason, despite looking up the correct way to set Node variables in a Windows terminal, I wasn't able to do so in the terminal. Instead I had to install dotenv, create a .env file and put require('dotenv').config() in my code. It might be worth highlighting this to other Windows users.
For some reason, despite looking up the correct way to set Node variables in a Windows terminal, I wasn't able to do so in the terminal. Instead I had to install dotenv, create a .env file and put
require('dotenv').config()
in my code. It might be worth highlighting this to other Windows users.