diff --git a/src/lib/http.js b/src/lib/http.js index 9dbcdf2..31ebf84 100644 --- a/src/lib/http.js +++ b/src/lib/http.js @@ -1 +1 @@ -module.exports.domain = process.env.HTTP_EXTERNAL.match(/http(s?):\/\/(?[a-zA-Z0-9\-_.]+)(:\d+)?/).groups.domain; \ No newline at end of file +module.exports.domain = new URL(process.env.HTTP_EXTERNAL).hostname;