Skip to content

Commit be6fe30

Browse files
authored
Merge pull request #9 from ioet/introducing-env-vars
closes #6 - Introducing env vars in Azure Functions
2 parents 4b16887 + 52c1482 commit be6fe30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

AutomaticClockOuts/config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
const config = {
2-
endpoint: "xxx",
3-
key: "xxx",
2+
endpoint: process.env["ENDPOINT"],
3+
key: process.env["KEY"],
44
databaseId: "time-tracker-db",
55
containerId: "time_entry",
66
partitionKey: { kind: "Hash", paths: ["/category"] },
7-
clientId: "xxx",
8-
authority: "xxx",
9-
clientSecret: "xxx",
10-
slackWebHook: "xxx"
7+
clientId: process.env["CLIENT_ID"],
8+
authority: process.env["AUTHORITY"],
9+
clientSecret: process.env["CLIENT_SECRET"],
10+
slackWebHook: process.env["SLACK_WEBHOOK"]
1111
};
1212

1313
module.exports = config;

0 commit comments

Comments
 (0)