I am trying to pass environment vairable setup inside asp.net core (kesterl) to vuejs My launchsettings is like
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "https://localhost:44323/",
"sslPort": 44323
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"BEAPI_URL": "http://localhost:4000/api/v1",
"VUE_BEAPI_URL": "http://localhost:4000/api/v1"
}
},
}
}
and my vuejs config is as following
export default {
// apiUrl: 'http://localhost:4000/api/v1'
apiUrl: process.env.VUE_BEAPI_URL
}
Anyone help like my scenario Other then this my vuejs app is working fine under kesterl