In addition to any process environment variables, if you have a .env file in your project root directory, it will be automatically loaded at dev, build and generate time.
This appears to not be the case. I have an .env file in the project root directory. If I run