| Current Path : /home/zoomride2022/public_html/survo.app/ |
| Current File : /home/zoomride2022/public_html/survo.app/app.js |
const http = require("http");
const next = require("next");
const dev = false;
const app = next({ dev });
const handle = app.getRequestHandler();
const port = process.env.PORT || 5001;
app.prepare().then(() => {
const server = http.createServer((req, res) => {
handle(req, res);
});
server.listen(port, () => {
console.log(`Survo frontend listening on ${port}`);
});
});