diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d529ed5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +## 1.1.0 (2020-06-18) +* Feature: Allow overriding the subdomain when using `expose` without specifying `expose share` explicitly +* Show badges in the local dashboard for 3xx response statuses +* Fix: Updated minimum PHP dependency +* Fix: Added support for detecting the Windows user home path +* Fix: Use minified VueJS versions +* Various spelling fixes + +## 1.0.1 (2020-06-17) +* Fixes an issue when setting the auth token + +## 1.0.0 (2020-06-17) +* Initial release diff --git a/app/Commands/ShareCurrentWorkingDirectoryCommand.php b/app/Commands/ShareCurrentWorkingDirectoryCommand.php index 45b2c48..9cc3b88 100644 --- a/app/Commands/ShareCurrentWorkingDirectoryCommand.php +++ b/app/Commands/ShareCurrentWorkingDirectoryCommand.php @@ -20,7 +20,7 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand protected function detectTld(): string { - $valetConfigFile = $_SERVER['HOME'] ?? $_SERVER['USERPROFILE'].DIRECTORY_SEPARATOR.'.config'.DIRECTORY_SEPARATOR.'valet'.DIRECTORY_SEPARATOR.'config.json'; + $valetConfigFile = ($_SERVER['HOME'] ?? $_SERVER['USERPROFILE']) .DIRECTORY_SEPARATOR.'.config'.DIRECTORY_SEPARATOR.'valet'.DIRECTORY_SEPARATOR.'config.json'; if (file_exists($valetConfigFile)) { $valetConfig = json_decode(file_get_contents($valetConfigFile));