Ok, I managed to test it and it works fine as you said when it doesn’t go through an apache server. But in my case, I have to deploy it through an apache server as this issue explains:
Do you know why the hot reloading is not working in this case and possible solutions?
Thanks