sdy

create setupProxy.js

1 +const { createProxyMiddleware } = require('http-proxy-middleware')
2 +
3 +module.exports = function (app) {
4 + app.use(
5 + createProxyMiddleware('/_search', {
6 + target: 'http://localhost:9200'
7 + })
8 + )
9 +}