fix production builds, and environment variables with envify