mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-02 16:29:39 +00:00
Allow env variable to point to specific plugin path for debugging
This commit is contained in:
parent
cbbdb0ec29
commit
5f680d7277
2 changed files with 11 additions and 0 deletions
|
|
@ -161,6 +161,16 @@ class PluginManager {
|
|||
pluginsFound.push(plugin)
|
||||
}
|
||||
}
|
||||
if (process.env.EXTERNAL_PLUGIN_PATH) {
|
||||
const pluginName = Path.basename(process.env.EXTERNAL_PLUGIN_PATH)
|
||||
const plugin = await this.loadPlugin(pluginName, process.env.EXTERNAL_PLUGIN_PATH)
|
||||
if (plugin) {
|
||||
Logger.debug(`[PluginManager] Found external plugin "${plugin.manifest.name}"`)
|
||||
pluginsFound.push(plugin)
|
||||
} else {
|
||||
Logger.error(`[PluginManager] External plugin not found or invalid`)
|
||||
}
|
||||
}
|
||||
return pluginsFound
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue