Disable doc debug mode by default in production and test