mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Merge branch 'main' into feature/WebCrawl
# Conflicts: # packages/components/src/utils.ts
This commit is contained in:
@@ -336,6 +336,20 @@ export async function xmlScrape(currentURL: string, limit: number): Promise<stri
|
||||
return urls
|
||||
}
|
||||
|
||||
/*
|
||||
* Get env variables
|
||||
* @param {string} url
|
||||
* @param {number} limit
|
||||
* @returns {string[]}
|
||||
*/
|
||||
export const getEnvironmentVariable = (name: string): string | undefined => {
|
||||
try {
|
||||
return typeof process !== 'undefined' ? process.env?.[name] : undefined
|
||||
} catch (e) {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom chain handler class
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user