diff --git a/src/next-lib.js b/src/next-lib.js index 40d54426..3694918b 100644 --- a/src/next-lib.js +++ b/src/next-lib.js @@ -42,10 +42,11 @@ function absoluteUrl(req, defaultLocalhost) { if (defaultLocalhost) host = defaultLocalhost protocol = 'http:' } + const origin = protocol + '//' + host return { - protocol: protocol, - host: host, - origin: protocol + '//' + host + protocol, + host, + origin, } }