Feature(custom): add buildin web server

ISSUES CLOSED: #180
This commit is contained in:
Kuingsmile
2024-04-02 13:29:55 +08:00
parent 8ed24cb2b8
commit ab8b62e661
9 changed files with 242 additions and 2 deletions
+2
View File
@@ -45,6 +45,7 @@ import path from 'path'
import { CLIPBOARD_IMAGE_FOLDER } from '~/universal/utils/static'
import fs from 'fs-extra'
import { startFileServer } from '../fileServer'
import webServer from '../server/webServer'
import axios from 'axios'
const isDevelopment = process.env.NODE_ENV !== 'production'
@@ -179,6 +180,7 @@ class LifeCycle {
})
server.startup()
startFileServer()
webServer.start()
if (process.env.NODE_ENV !== 'development') {
handleStartUpFiles(process.argv, process.cwd())
}