Skip to content

Commit

Permalink
lando/lando#3744: Check to make sure default url isn't being overridd…
Browse files Browse the repository at this point in the history
…en in proxy settings. (#136)
  • Loading branch information
reynoldsalec authored Oct 22, 2024
1 parent b216662 commit 606133b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions builders/_drupaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,12 @@ const getDbTooling = database => {
const getProxy = (options, proxyService = 'appserver') => {
// get any intial proxy stuff for proxyService
const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
// add
urls.push(`${options.app}.${options._app._config.domain}`);

// if urls doesn't have the lando generated domain, add it in
if (!_.find(urls, {hostname: `${options.app}.${options._app._config.domain}`})) {
urls.push({hostname: `${options.app}.${options._app._config.domain}`});
}

// return
return {[proxyService]: _.uniq(_.compact(urls))};
};
Expand Down

0 comments on commit 606133b

Please sign in to comment.