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 119a739 commit 145dc18Copy full SHA for 145dc18
examples/server.mjs
@@ -5,8 +5,10 @@ import * as dotenv from "dotenv";
5
dotenv.config()
6
7
import { load } from "@azure/app-configuration-provider";
8
-const connectionString = process.env.APPCONFIG_CONNECTION_STRING;
9
-const appConfig = await load(connectionString, {
+import { DefaultAzureCredential } from "@azure/identity";
+const endpoint = process.env.APPCONFIG_ENDPOINT;
10
+const credential = new DefaultAzureCredential();
11
+const appConfig = await load(endpoint, credential, {
12
refreshOptions: {
13
enabled: true,
14
refreshIntervalInMs: 5_000
0 commit comments