Skip to content

How to correctly enable hot reload with Inertia and Vue? #9

@WalterPrz

Description

@WalterPrz

Hi, thanks for this great project!

I'm using this Docker setup with Laravel, Inertia, and Vue 3. I noticed that when I make changes to my Vue components, hot reload doesn't seem to work properly.

I tried running npm run dev inside the workspace container, but it doesn't seem to be the correct approach. I also saw that port 5173 is exposed in the container, which made me wonder if Vite is supposed to run inside Docker or on the host machine.

So my question is:

👉 What is the correct way to get hot reload working when using Inertia.js with Vue in this Docker setup?

Should I run npm run dev locally on my host instead of inside the container?
Any help or recommended configuration would be appreciated!

Thanks in advance 🙌

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