diff --git a/next-start.js b/next-start.js new file mode 100644 index 0000000..96511c5 --- /dev/null +++ b/next-start.js @@ -0,0 +1,15 @@ +#!/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}`); + }); +}); \ No newline at end of file