The application object has the isDev(), isTest() and isProd() methods.
But I can't find out where to set this in the .conf file.
Using the search feature on the website for "mode", "dev", "test" or "prod" gives nothing related to this. This doesn't appear to be documented.