1 Star 1 Fork 0

泷涯/owmod-frontend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.js 439 Bytes
一键复制 编辑 原始数据 按行查看 历史
泷涯 提交于 6年前 . Add some pages
const { createServer } = require('http')
const next = require('next')
const routes = require('./routes')
const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handler = routes.getRequestHandler(app)
app.prepare().then(() => {
createServer(handler).listen(port, err => {
if (err) throw err
console.log(`> Ready on http://localhost:${port}`)
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sy/owmod-frontend.git
git@gitee.com:sy/owmod-frontend.git
sy
owmod-frontend
owmod-frontend
master

搜索帮助