Skip to content
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

Prevent unresolvable APP_URL #240

Merged
merged 2 commits into from
Aug 5, 2022
Merged

Conversation

jessarcher
Copy link
Member

@jessarcher jessarcher commented Aug 5, 2022

This PR fixes an issue where the installer will generate a *.test hostname that is unresolvable on many machines.

If the user has not installed Valet (which doesn't exist for Windows and Linux), then the *.test hostnames will not resolve unless they have manually set up their DNS to handle it.

This PR solves that by testing whether the *.test hostname resolves before using it, otherwise it leaves the APP_URL as http://localhost.

This is especially useful with Vite, as we output the APP_URL to the console to guide users away from visiting the Vite dev server URL directly.

@taylorotwell taylorotwell merged commit 84b79c6 into master Aug 5, 2022
@taylorotwell taylorotwell deleted the prevent-unresolvable-app-url branch August 5, 2022 14:09
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.

2 participants