김건희

[Add] Proxy Setting

1 +const { createProxyMiddleware } = require("http-proxy-middleware");
2 +
3 +module.exports = function(app) {
4 + app.use(
5 + createProxyMiddleware('/', {
6 + target: 'http://localhost:4000', //접속하려는 서버의 루트 URL
7 + changeOrigin: true
8 + })
9 + );
10 +};
...\ No newline at end of file ...\ No newline at end of file