From 52c1482f13daf0f1d2e13927229c681b7c2d639f Mon Sep 17 00:00:00 2001 From: Rene Enriquez Date: Mon, 9 Nov 2020 00:47:52 -0500 Subject: [PATCH] Introducing env vars in Azure Functions --- AutomaticClockOuts/config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AutomaticClockOuts/config.js b/AutomaticClockOuts/config.js index 2bdab84..bb7a893 100644 --- a/AutomaticClockOuts/config.js +++ b/AutomaticClockOuts/config.js @@ -1,13 +1,13 @@ const config = { - endpoint: "xxx", - key: "xxx", + endpoint: process.env["ENDPOINT"], + key: process.env["KEY"], databaseId: "time-tracker-db", containerId: "time_entry", partitionKey: { kind: "Hash", paths: ["/category"] }, - clientId: "xxx", - authority: "xxx", - clientSecret: "xxx", - slackWebHook: "xxx" + clientId: process.env["CLIENT_ID"], + authority: process.env["AUTHORITY"], + clientSecret: process.env["CLIENT_SECRET"], + slackWebHook: process.env["SLACK_WEBHOOK"] }; module.exports = config;