sdy

create setupProxy.js

const { createProxyMiddleware } = require('http-proxy-middleware')
module.exports = function (app) {
app.use(
createProxyMiddleware('/_search', {
target: 'http://localhost:9200'
})
)
}