Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] multiple times loading .env

Open nobody4t opened this issue 2 years ago • 2 comments

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.

nobody4t avatar Jan 02 '24 06:01 nobody4t

have you tried to see if import once will do? and if yes, in which file?

HenryHengZJ avatar Jan 05 '24 00:01 HenryHengZJ

The system wide env should keep start.ts. I have some simple test and it would be OK to just keep this one.

4t8dd avatar Jan 08 '24 06:01 4t8dd