Webpack React Proxy tidak berfungsi

//add this config in WebpackDevServer

proxy: {
  '/api': {
    target: 'http://localhost:4000',
      changeOrigin: true,
  },
},
Restu Wahyu Saputra