fix bug where share chatflow is not able to open on any other browser

This commit is contained in:
Henry
2023-06-29 23:47:20 +01:00
parent dc2f35bfad
commit 7141401e26
13 changed files with 183 additions and 73 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ export const isSameOverrideConfig = (
* @returns {string}
*/
export const getAPIKeyPath = (): string => {
return path.join(__dirname, '..', '..', 'api.json')
return process.env.APIKEY_PATH ? path.join(process.env.APIKEY_PATH, 'api.json') : path.join(__dirname, '..', '..', 'api.json')
}
/**