mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
use dist app
This commit is contained in:
parent
80d54d0443
commit
23cbba8647
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@comty/wrapper",
|
"name": "@comty/wrapper",
|
||||||
"version": "1.26.4@alpha",
|
"version": "1.26.5@alpha",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "linebridge-boot ./src/index.js"
|
"start": "linebridge-boot ./src/index.js"
|
||||||
|
@ -10,6 +10,7 @@ class WebWrapper extends Server {
|
|||||||
static listenPort = process.env.HTTP_LISTEN_PORT || 5000
|
static listenPort = process.env.HTTP_LISTEN_PORT || 5000
|
||||||
|
|
||||||
static publicPath = path.resolve(process.cwd(), "public")
|
static publicPath = path.resolve(process.cwd(), "public")
|
||||||
|
static appDistPath = path.resolve(process.cwd(), "public/dist")
|
||||||
static cachePath = path.resolve(process.cwd(), ".cache")
|
static cachePath = path.resolve(process.cwd(), ".cache")
|
||||||
static distManifestPath = path.resolve(this.publicPath, "manifest.json")
|
static distManifestPath = path.resolve(this.publicPath, "manifest.json")
|
||||||
static distCompressedFile = "dist.zip"
|
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,
|
static: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user