All checks were successful
Production deployment / Production-Deployment (push) Successful in 44s
15 lines
419 B
JavaScript
15 lines
419 B
JavaScript
#!/opt/plesk/node/18/bin/node
|
|
process.env.NODE_ENV = 'production';
|
|
const { createServer } = require('http');
|
|
const next = require('next');
|
|
|
|
const app = next({ dev: false });
|
|
const handler = app.getRequestHandler();
|
|
const port = process.env.PORT || 3000;
|
|
|
|
app.prepare().then(() => {
|
|
createServer(handler).listen(port, (err) => {
|
|
if (err) throw err;
|
|
console.log(`> Ready on http://localhost:${port}`);
|
|
});
|
|
}); |