Skip to content

Commit bcb334f

Browse files
author
Lasim
committed
fix: correct plugin paths configuration for better clarity and maintainability
1 parent 935f5e4 commit bcb334f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/backend/src/server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ export const createServer = async () => {
5454
const isDevelopment = process.env.NODE_ENV !== 'production';
5555
const pluginManager = new PluginManager({
5656
paths: [
57-
isDevelopment
57+
process.env.PLUGINS_PATH || (isDevelopment
5858
? path.join(process.cwd(), 'src', 'plugins')
59-
: path.join(__dirname, 'plugins'),
60-
process.env.PLUGINS_PATH || path.join(process.cwd(), 'plugins'),
59+
: path.join(__dirname, 'plugins')),
6160
],
6261
plugins: {}
6362
})

0 commit comments

Comments
 (0)