File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/cli/src/services Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { CommunityNodeType } from '@n8n/api-types' ;
2
- import { Logger } from '@n8n/backend-common' ;
2
+ import { Logger , inProduction } from '@n8n/backend-common' ;
3
3
import { GlobalConfig } from '@n8n/config' ;
4
4
import { Service } from '@n8n/di' ;
5
5
import { ensureError , type INodeTypeDescription } from 'n8n-workflow' ;
@@ -46,7 +46,9 @@ export class CommunityNodeTypesService {
46
46
this . globalConfig . nodes . communityPackages . enabled &&
47
47
this . globalConfig . nodes . communityPackages . verifiedEnabled
48
48
) {
49
- const environment = this . globalConfig . license . tenantId === 1 ? 'production' : 'staging' ;
49
+ // Cloud sets ENVIRONMENT to 'production' or 'staging' depending on the environment
50
+ const environment =
51
+ inProduction || process . env . ENVIRONMENT === 'production' ? 'production' : 'staging' ;
50
52
data = await getCommunityNodeTypes ( environment ) ;
51
53
}
52
54
You can’t perform that action at this time.
0 commit comments