4 Star 6 Fork 0

Cheng/AnyThing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
server.js 512 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const express = require('express')
const fs = require('fs')
const http = require('http')
const app = express()
app.use(express.static('./dist'))
app.use(function (req, res, next) {
res.sendfile('./dist/index.html')
})
const httpsServer = http.createServer(app)
httpsServer.listen(8066, function () {
const port = httpsServer.address().port
console.log('app listening at http://localhost:%s', port)
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/WuCheng-cn/any-thing.git
git@gitee.com:WuCheng-cn/any-thing.git
WuCheng-cn
any-thing
AnyThing
master

搜索帮助