Skip to content

Valet/Herd Preference + Smarter Detection #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 1.x
Choose a base branch
from

Conversation

jasoryeh
Copy link

Hi, oddly enough, I use Valet+PHPMonitor and Herd separately and at times swap between them, and discovered that once Herd is installed, the Vite plugin breaks when I try to use this plugin with pure valet sites since the plugin looks for Herd configs first and ignores valet after that.

To remedy this, I added an env LARAVEL_PREFER_DEVELOPMENT_ENVIRONMENT (which can be herd or valet) that will prefer one or the other if both exist.

I also added "smarter" detection for these certificates by checking for certificates of the current site in all available directories first instead of choosing Herd first just because its valet directory exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant