Skip to content

Commit

Permalink
Backport Node 14 syntax to comply to minimum reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri authored and ifox committed Nov 19, 2023
1 parent 945e97e commit a068e1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ const config = {

if (useHttps) {
const homeDir = process.env.HOME;
const host = process.env.APP_URL.split('//')[1] ?? process.env.APP_URL;
if (process.env.APP_URL.includes('//')) {
const host = process.env.APP_URL.split('//')[1];
}
else {
const host = process.env.APP_URL;
}

// This takes the ssh certificates from your `valet secure` domain so that browsers (Looking at safari) stop
// complaining about it.
Expand Down

0 comments on commit a068e1b

Please sign in to comment.