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

[0.6.x] Fail running HMR in known environments #128

Merged
merged 7 commits into from
Sep 15, 2022
Merged

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Aug 25, 2022

This PR introduces some nice errors for developers when running the HMR server (npm run dev) in known environments where it shouldn't be run, specifically:

The ENV check can be overridden:

LARAVEL_BYPASS_ENV_CHECK=1 npm run dev

@timacdonald timacdonald changed the title Fail running HMR in known environments [0.5.x] Fail running HMR in known environments Aug 25, 2022
@timacdonald
Copy link
Member Author

Forge output when running npm run dev in the deploy script (although we have updated the error wording since).

Screen Shot 2022-08-26 at 9 41 49 am

@timacdonald timacdonald changed the title [0.5.x] Fail running HMR in known environments [0.6.x] Fail running HMR in known environments Sep 6, 2022
@timacdonald timacdonald marked this pull request as ready for review September 6, 2022 06:58
@timacdonald
Copy link
Member Author

@joedixon and I just tested this against Vapor, so it will fix issues there as well once the PR is merged and users update. Some eventual consistency going on.

@timacdonald timacdonald marked this pull request as draft September 13, 2022 01:58
@timacdonald
Copy link
Member Author

Converted to draft until we have the Envoyer var merged.

@timacdonald timacdonald marked this pull request as ready for review September 13, 2022 23:36
@innocenzi
Copy link
Contributor

Small nitpick: rephrase "Vite HMR server" to "Vite development server", as said server is not only for HMR - in fact, sometimes HMR is not even available

@taylorotwell taylorotwell merged commit 7ec7c0a into main Sep 15, 2022
@taylorotwell taylorotwell deleted the fail-vapor branch September 15, 2022 13:24
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.

3 participants