In my case, it was due to the .env file being Git-ignored, and the following checkbox was set in the settings: