Only run production check when actually in production