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 that this.$router.push('somepage') will push me to
    But instead it sends me to https://localhost:8080/somepage
    I tried to edit router/index.js and changed base: process.env.VUE_ROUTER_BASE to base:
    Now it sends me to https://localhost:8080/https:/
    Anybody can help?