Only write to json if not in prod