We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b9575 commit 010395eCopy full SHA for 010395e
constants.js
@@ -106,8 +106,10 @@ export const GOOGLE_SHEET_ID = () => {
106
107
export const GOOGLE_KEYFILE_PATH = () => {
108
let keyFilePath;
109
- if (shadowConfigDetails && shadowConfigDetails.googleKeyFilePath) {
110
- keyFilePath = shadowConfigDetails.googleKeyFilePath;
+ if (process.env.GOOGLE_KEY_FILE_PATH) {
+ keyFilePath = process.env.GOOGLE_KEY_FILE_PATH; // Use the environment variable if it exists
111
+ } else if (shadowConfigDetails && shadowConfigDetails.googleKeyFilePath) {
112
+ keyFilePath = shadowConfigDetails.googleKeyFilePath; // Fallback to the config value if set
113
} else {
114
keyFilePath = false;
115
}
0 commit comments