use dist app

This commit is contained in:
SrGooglo 2025-02-19 18:50:49 +00:00
parent 80d54d0443
commit 23cbba8647
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@comty/wrapper",
"version": "1.26.4@alpha",
"version": "1.26.5@alpha",
"license": "MIT",
"scripts": {
"start": "linebridge-boot ./src/index.js"

View File

@ -10,6 +10,7 @@ class WebWrapper extends Server {
static listenPort = process.env.HTTP_LISTEN_PORT || 5000
static publicPath = path.resolve(process.cwd(), "public")
static appDistPath = path.resolve(process.cwd(), "public/dist")
static cachePath = path.resolve(process.cwd(), ".cache")
static distManifestPath = path.resolve(this.publicPath, "manifest.json")
static distCompressedFile = "dist.zip"
@ -70,7 +71,7 @@ class WebWrapper extends Server {
})
}
global.staticLiveDirectory = new LiveDirectory(WebWrapper.publicPath, {
global.staticLiveDirectory = new LiveDirectory(WebWrapper.appDistPath, {
static: true,
})
}