[BUG] multiple times loading .env
The first time is from server/start.ts: https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/commands/start.ts#L5C27-L5C27 second time is from server/utils/config: https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/utils/config.ts#L5C1-L6C82
And the third time is: from components/index.ts: https://github.com/FlowiseAI/Flowise/blob/main/packages/components/src/index.ts#L5C1-L6C82.
As I can tell, only the one from start.ts will be enough.
have you tried to see if import once will do? and if yes, in which file?
The system wide env should keep start.ts. I have some simple test and it would be OK to just keep this one.