0👍
OK, so I have installed webpack over npm. Additional I need some additional code in the vue.config.js
, correct? Now my vue.config.js
is:
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack: {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:3080',
},},},},})
And edit the Endpoint to ...app.post("/api/signup",async (req,res)=>{...
but its not work.
I get this error: Proxy error: Could not proxy request
/api/signup from localhost:8080 to http://localhost:3080 (ECONNREFUSED).
Source:stackexchange.com