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 https://mydomain.com/somepage
    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: https://mydomain.com
    Now it sends me to https://localhost:8080/https:/mydomain.com/somepage
    Anybody can help?


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.