Migrate to Lumos v0.23
BREAKING: Dropped All Filesystem Supports
@ckb-lumos/config-manager
.initializeConfig
Dropped The Support for Reading File/Environment Configuration
Lumos dropped the support of reading configuration from process.env.LUMOS_CONFIG_NAME
and working directory's config.json
. Please reading the configuration file manually
+import { readFileSync } from "node:fs"
+const config = readFileSync(path)
+initializeConfig(JSON.parse(config))