Using http-proxy-middleware agent in koa2 didn't work.

Koa2 and http-proxy-middleware are used as proxies when server rendering is set in

react, and no proxies are found to be successful

Mapping local port 3333 to 8889, not found.

router.get("/", async function(ctx, next) {
    var template = await getTemplate()
    const content = ReactDomServer.renderToString(serverBundle)
    ctx.body = template.replace("<!-- app -->", content)
    next()
})
router.get("/public",
    c2k(
        proxy({
            target: "http://localhost:8889/",
            changeOrigin: true,
            
        })
    )
)

Mar.20,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a8bf-407ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a8bf-407ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?