UNPKG
brazy-auth
Version:
latest (5.10.35)
5.10.35
5.10.34
5.10.33
5.10.32
5.10.31
5.10.30
5.10.29
5.10.28
5.10.27
5.10.25
5.10.24
5.10.23
5.10.22
5.10.21
5.10.20
5.10.19
5.10.18
5.10.17
5.10.16
5.10.15
5.10.13
5.10.12
5.10.11
5.10.10
5.10.9
5.10.8
5.10.7
5.10.6
5.10.5
5.10.4
5.10.3
Authentication for Next.js
github.com/kerbios/next-auth
kerbios/next-auth
brazy-auth
/
utils
/
detect-host.js
10 lines
(9 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
detectHost
= detectHost;
function
detectHost
(
forwardedHost
) {
if
(process.
env
.
VERCEL
)
return
forwardedHost;
return
process.
env
.
NEXTAUTH_URL
; }