Skip to content

Commit

Permalink
use isset( $_ENV['LANDO'] )
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 29, 2024
1 parent 5d59706 commit f90bf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-config-pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
if ( ! defined('PANTHEON_HOSTNAME' ) ) {
$site_name = $_ENV['PANTHEON_SITE_NAME'];
$hostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : $_ENV['PANTHEON_ENVIRONMENT'] . "-{$site_name}.pantheonsite.io" ;
$hostname = $_ENV['PANTHEON_ENVIRONMENT'] === 'lando' ? "{$site_name}.lndo.site" : $hostname;
$hostname = isset( $_ENV['LANDO'] ) ? "{$site_name}.lndo.site" : $hostname;
define( 'PANTHEON_HOSTNAME', $hostname );
}

Expand Down

0 comments on commit f90bf2b

Please sign in to comment.