Problems with user secrets in .Net console apps

I'd misunderstood the way the Host.CreateDefaultBuilder method worked. According to the documentation (docs):

load app IConfiguration from User Secrets when EnvironmentName is 'Development' using the entry assembly

My environment is Production (probably a fallback value). It worked in my colleague's project because it included a launchSettings.json file.