Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Introducing env vars in Azure Functions
  • Loading branch information
enriquezrene committed Nov 9, 2020
commit 52c1482f13daf0f1d2e13927229c681b7c2d639f
12 changes: 6 additions & 6 deletions AutomaticClockOuts/config.js
Original file line number Diff line number Diff line change
@@ -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;