Router base problem when using hot reloading
-
I develop my app with hot reload but not on localhost but on a domain.
To do so I just load the script with<script type="text/javascript" src="https://localhost:8080/app.js"></script>
and add<base href="https://localhost:8080/">
to my html loaded from the server.
Everything went well until I wanted to use vue router. I expected thatthis.$router.push('somepage')
will push me tohttps://mydomain.com/somepage
But instead it sends me tohttps://localhost:8080/somepage
I tried to edit router/index.js and changedbase: process.env.VUE_ROUTER_BASE
tobase: https://mydomain.com
Now it sends me tohttps://localhost:8080/https:/mydomain.com/somepage
Anybody can help?