Skip to content

Commit

Permalink
Ensure device IP is used for safari browserstack test (vercel#32712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Dec 21, 2021
1 parent 13bac7c commit e963209
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lib/next-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export function getFullUrl(appPortOrUrl, url, hostname) {

parsedUrl.search = parsedPathQuery.search
parsedUrl.pathname = parsedPathQuery.pathname

if (hostname && parsedUrl.hostname === 'localhost') {
parsedUrl.hostname = hostname
}
fullUrl = parsedUrl.toString()
}
return fullUrl
Expand Down

0 comments on commit e963209

Please sign in to comment.