You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
381 B

const { createProxyMiddleware } = require("http-proxy-middleware");
const express = require('express');
const PORT = 8080;
console.log(`Starting Proxy on port ${PORT}`);
const app = express();
app.use(createProxyMiddleware({ target: "http://localhost:8081", changeOrigin: true, ws: true }));
app.listen(PORT, () => {
console.log(`Started on http://localhost:${PORT}`);
});