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

Accessing dev site through localhost:3000 #16

Open
basduchambre opened this issue Jul 6, 2023 · 0 comments
Open

Accessing dev site through localhost:3000 #16

basduchambre opened this issue Jul 6, 2023 · 0 comments

Comments

@basduchambre
Copy link

Hi there,

Thanks for your work and solution of implementing Vite into WordPress. Something I've been wanting do to for a while. I am using your repo as reference to my own setup which is basically a hybrid between Roots Bedrock and Roots Sage. This works fine, although I have a question. With Laravel Mix we used to access our dev sites through http://localhost:3000. In the current setup, this results in a 404. Using Valet we get it to work on the .test domain and this works fine.

However, would it be possible to also proxy through http://localhost:3000? I've seen your comments in vite.config.js about it resulting in 404 so the behaviour is expected, but it would be helpful to also proxy the HMR through the localhost domain.

Any way to achieve this? Thanks a lot!

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

No branches or pull requests

1 participant