Skip to content

Commit 010395e

Browse files
committed
added update page name and module type
1 parent 19b9575 commit 010395e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

constants.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ export const GOOGLE_SHEET_ID = () => {
106106

107107
export const GOOGLE_KEYFILE_PATH = () => {
108108
let keyFilePath;
109-
if (shadowConfigDetails && shadowConfigDetails.googleKeyFilePath) {
110-
keyFilePath = shadowConfigDetails.googleKeyFilePath;
109+
if (process.env.GOOGLE_KEY_FILE_PATH) {
110+
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
111113
} else {
112114
keyFilePath = false;
113115
}

0 commit comments

Comments
 (0)