build debug
This commit is contained in:
parent
2aadae6b85
commit
aa0875ae9e
4
index.js
4
index.js
@ -15,7 +15,7 @@ turnServer.start(() => {
|
|||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
const wsInstance = expressWs(app)
|
const wsInstance = expressWs(app)
|
||||||
app.use(express.static('public'))
|
app.use(express.static('dist'))
|
||||||
app.use(express.json())
|
app.use(express.json())
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
if (req.method === 'CONNECT') {
|
if (req.method === 'CONNECT') {
|
||||||
@ -121,7 +121,7 @@ app.ws('/entanglement', (ws, req) => {
|
|||||||
// WEBHOOK 处理 GitHub 事件
|
// WEBHOOK 处理 GitHub 事件
|
||||||
app.post('/webhook', (req, res) => {
|
app.post('/webhook', (req, res) => {
|
||||||
console.log('WEBHOOK:' + new Date().toLocaleString())
|
console.log('WEBHOOK:' + new Date().toLocaleString())
|
||||||
exec('git pull;npm i')
|
exec('git pull;npm i;npm run build')
|
||||||
return res.json({ success: true })
|
return res.json({ success: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -20,5 +20,8 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
WindiCSS(),
|
WindiCSS(),
|
||||||
]
|
],
|
||||||
|
build: {
|
||||||
|
target: "esnext"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user