Use config, not process.env, to handle URL.