-
Notifications
You must be signed in to change notification settings - Fork 152
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
[1.x] Auto detect Valet / Herd TLS certificates #180
Conversation
This would be amazing, except for the way the host is resolved. My opinion is still that
In this situation, even if Teammate1 sets To fix this issue, Alternatively, resolving the host via the working directory can be done as a fallback if (I still think I really like your addition to the CLI output. Looks pretty nice and it's useful. |
Hey @innocenzi, You're correct that we're concerned about We prefer the working directory because that's what Valet uses by default. For cases where the Valet link name has been customised, the Having said that, I'd love it if the auto-detection could handle custom link names. I don't have a Mac and haven't used Valet, but from what I can tell, the If that doesn't work out, I'm not completely opposed to using |
I understand the concern and that technically, the semantics don't match — however, in practice, this is the perfect fit for this option, I would argue.
I think this would be the perfect compromise, if the solution above doesn't work. |
@timacdonald it's been a while, with the support or Herd now I thought this would be a good time to follow-up? |
@jessarcher and I have started talking about this again. We will circle back to it shortly and get things moving, whichever way. |
Will revisit this PR tomorrow and see if we can get it into shape for the |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [laravel-vite-plugin](https://github.com/laravel/vite-plugin) | [`^0.8.0` -> `^1.0.0`](https://renovatebot.com/diffs/npm/laravel-vite-plugin/0.7.8/1.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/laravel-vite-plugin/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/laravel-vite-plugin/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/laravel-vite-plugin/0.7.8/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/laravel-vite-plugin/0.7.8/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>laravel/vite-plugin (laravel-vite-plugin)</summary> ### [`v1.0.2`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v102---2024-02-28) [Compare Source](https://github.com/laravel/vite-plugin/compare/v1.0.1...v1.0.2) - \[1.x] Fix HMR issue when `resources/lang` directory doesn't exist and a symlink is present in the root directory by [@​jessarcher](https://github.com/jessarcher) in [https://github.com/laravel/vite-plugin/pull/285](https://github.com/laravel/vite-plugin/pull/285) ### [`v1.0.1`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v101---2023-12-27) [Compare Source](https://github.com/laravel/vite-plugin/compare/v1.0.0...v1.0.1) - \[1.x] Simpler conditional by [@​Jubeki](https://github.com/Jubeki) in [https://github.com/laravel/vite-plugin/pull/273](https://github.com/laravel/vite-plugin/pull/273) - \[1.x] Account for imported CSS files while cleaning by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/275](https://github.com/laravel/vite-plugin/pull/275) - \[1.x] Fix exit error messages by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/276](https://github.com/laravel/vite-plugin/pull/276) ### [`v1.0.0`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v100---2023-12-19) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.8.1...v1.0.0) - \[1.0] Drop CJS build and export types first by [@​benmccann](https://github.com/benmccann) in [https://github.com/laravel/vite-plugin/pull/235](https://github.com/laravel/vite-plugin/pull/235) - \[1.x] Introduce `clean-orphaned-assets` binary by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/251](https://github.com/laravel/vite-plugin/pull/251) - \[0.8.x] Respect vite server.origin in viteDevServerUrl by [@​nurdism](https://github.com/nurdism) in [https://github.com/laravel/vite-plugin/pull/255](https://github.com/laravel/vite-plugin/pull/255) - \[1.x] Vite 5 by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/269](https://github.com/laravel/vite-plugin/pull/269) - \[0.8.x] Fallback pages by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/271](https://github.com/laravel/vite-plugin/pull/271) - \[1.x] Auto detect Valet / Herd TLS certificates by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/180](https://github.com/laravel/vite-plugin/pull/180) ### [`v0.8.1`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v081---2023-09-26) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.8.0...v0.8.1) - \[0.8] Fix issue with `0.0.0.0` network resolution by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/241](https://github.com/laravel/vite-plugin/pull/241) - Upgrade vitest by [@​sapphi-red](https://github.com/sapphi-red) in [https://github.com/laravel/vite-plugin/pull/246](https://github.com/laravel/vite-plugin/pull/246) ### [`v0.8.0`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v080---2023-08-08) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.7.8...v0.8.0) - fix: compile error following upgrade.md's vite to mix guide by [@​AshboDev](https://github.com/AshboDev) in [https://github.com/laravel/vite-plugin/pull/231](https://github.com/laravel/vite-plugin/pull/231) - Support Laravel Herd by [@​claudiodekker](https://github.com/claudiodekker) in [https://github.com/laravel/vite-plugin/pull/233](https://github.com/laravel/vite-plugin/pull/233) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tisnamuliarta/laravel-shadcn). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [laravel-vite-plugin](https://github.com/laravel/vite-plugin) | [`^0.7.5` -> `^1.0.0`](https://renovatebot.com/diffs/npm/laravel-vite-plugin/0.7.8/1.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/laravel-vite-plugin/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/laravel-vite-plugin/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/laravel-vite-plugin/0.7.8/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/laravel-vite-plugin/0.7.8/1.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>laravel/vite-plugin (laravel-vite-plugin)</summary> ### [`v1.0.2`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v102---2024-02-28) [Compare Source](https://github.com/laravel/vite-plugin/compare/v1.0.1...v1.0.2) - \[1.x] Fix HMR issue when `resources/lang` directory doesn't exist and a symlink is present in the root directory by [@​jessarcher](https://github.com/jessarcher) in [https://github.com/laravel/vite-plugin/pull/285](https://github.com/laravel/vite-plugin/pull/285) ### [`v1.0.1`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v101---2023-12-27) [Compare Source](https://github.com/laravel/vite-plugin/compare/v1.0.0...v1.0.1) - \[1.x] Simpler conditional by [@​Jubeki](https://github.com/Jubeki) in [https://github.com/laravel/vite-plugin/pull/273](https://github.com/laravel/vite-plugin/pull/273) - \[1.x] Account for imported CSS files while cleaning by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/275](https://github.com/laravel/vite-plugin/pull/275) - \[1.x] Fix exit error messages by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/276](https://github.com/laravel/vite-plugin/pull/276) ### [`v1.0.0`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v100---2023-12-19) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.8.1...v1.0.0) - \[1.0] Drop CJS build and export types first by [@​benmccann](https://github.com/benmccann) in [https://github.com/laravel/vite-plugin/pull/235](https://github.com/laravel/vite-plugin/pull/235) - \[1.x] Introduce `clean-orphaned-assets` binary by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/251](https://github.com/laravel/vite-plugin/pull/251) - \[0.8.x] Respect vite server.origin in viteDevServerUrl by [@​nurdism](https://github.com/nurdism) in [https://github.com/laravel/vite-plugin/pull/255](https://github.com/laravel/vite-plugin/pull/255) - \[1.x] Vite 5 by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/269](https://github.com/laravel/vite-plugin/pull/269) - \[0.8.x] Fallback pages by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/271](https://github.com/laravel/vite-plugin/pull/271) - \[1.x] Auto detect Valet / Herd TLS certificates by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/180](https://github.com/laravel/vite-plugin/pull/180) ### [`v0.8.1`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v081---2023-09-26) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.8.0...v0.8.1) - \[0.8] Fix issue with `0.0.0.0` network resolution by [@​timacdonald](https://github.com/timacdonald) in [https://github.com/laravel/vite-plugin/pull/241](https://github.com/laravel/vite-plugin/pull/241) - Upgrade vitest by [@​sapphi-red](https://github.com/sapphi-red) in [https://github.com/laravel/vite-plugin/pull/246](https://github.com/laravel/vite-plugin/pull/246) ### [`v0.8.0`](https://github.com/laravel/vite-plugin/blob/HEAD/CHANGELOG.md#v080---2023-08-08) [Compare Source](https://github.com/laravel/vite-plugin/compare/v0.7.8...v0.8.0) - fix: compile error following upgrade.md's vite to mix guide by [@​AshboDev](https://github.com/AshboDev) in [https://github.com/laravel/vite-plugin/pull/231](https://github.com/laravel/vite-plugin/pull/231) - Support Laravel Herd by [@​claudiodekker](https://github.com/claudiodekker) in [https://github.com/laravel/vite-plugin/pull/233](https://github.com/laravel/vite-plugin/pull/233) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tisnamuliarta/laravel-shadcn). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
This PR adds:
1.x
release.detectTls: false
.Assume everywhere "Valet" is mentioned that it also applies to "Herd".
This PR allows teams with a mixture of Valet and non-Valet users to configure TLS certificates, without adding additional configuration.
The following standard Laravel plugin config supports both use-cases:
For Valet users, as long as a Valet certificate is found it will be used. Valet certificates are "guessed" in the same way they currently are.
For non-Valet users, you may specify the path to TLS certificates with the existing environment options.
CLI output
We now output on the CLI when Vite certificates are in use. This will help users know when the Valet certificates have been auto-detected, etc.
The
valetTls
option now has the following options.