Export will now give an error if the environment is not production.