Using base URL from env vars if provided (heroku needs this)