Team Ai
Modelpublic

shihuojian/nodecloud

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes58downloads
server.js11 linesDownload Raw Back to ndcc
1const next = require('next');2const dev = process.env.NODE_ENV !== 'production';3const app = next({ dev});4const Init = require(dev ? './server/index' :'./lib/index');5app.prepare().then(async () => {6    const server = await Init(app);7    server.start();8    console.log(`> Ready on http://127.0.0.1:${server.info.port}`);9}).catch(e=>{10    console.error(e.message)11});