mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
fix process.runtime
This commit is contained in:
parent
bea587f56a
commit
dbcbf8d6b9
@ -27,7 +27,12 @@ const defaultMiddlewares = [
|
|||||||
require('morgan')("dev"),
|
require('morgan')("dev"),
|
||||||
]
|
]
|
||||||
|
|
||||||
const helpers = process.runtime.helpers ?? require('@corenode/helpers')
|
if (typeof process.runtime === "undefined") {
|
||||||
|
process.runtime = {}
|
||||||
|
process.runtime.manifests = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
const helpers = process.runtime?.helpers ?? require('@corenode/helpers')
|
||||||
|
|
||||||
//* set globals
|
//* set globals
|
||||||
global.SERVER_VERSION = helpers.getVersion()
|
global.SERVER_VERSION = helpers.getVersion()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user