I would like to proxy a link from unauthenticated landing page to localhost:8080 in development environment. For some reason, my proxy rule is being ignored.
static site: localhost:80
webapp: localhost:8080
From the static site I have:
<v-btn href="https://mysubdomain.mydomain.com">Login</v-btn>
vue.config.js
within static project
module.exports = {
"transpileDependencies": [
"vuetify"
],
devServer: {
port: 80,
proxy: {
'https://mysubdomain.mydomain.com': {
target: 'http://localhost:8080',
changeOrigin: true,
}
}
}
}
Is this possible? Are href
tags ignored by this setting? I've tried with secure: false
, also have tried various proxy URLs, for example ^/mysubdomain.mydomain.com
. Regardless, I am sent to production subdomain.