Q. next.js React에서 mysql은 어떻게 사용하나요?'/test/t1', query);
}
} else if (pathname === '/a') {
app.render(req, res, '/about', query);
} else if (pathname === '/i') {
app.render(req, res, '/info', query);
} else {
handle(req, res, parsedUrl);
}
})
.listen(port2, err => {
if (err) throw err;
console.log(`> Ready on http://localhost:${port2}`);
});
});