Skip to content

Accessing dev site through localhost:3000 #16

Description

@basduchambre

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions