Skip to content

Commit

Permalink
feat: improve isDDEV()
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 9, 2023
1 parent 2830eed commit e4df541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function inputfield($data)
*/
public function isDDEV(): bool
{
return substr($this->wire->config->httpHost, -10) === ".ddev.site";
return !!getenv('DDEV_HOSTNAME');
}

/**
Expand Down

0 comments on commit e4df541

Please sign in to comment.