From e9b2da226a6dff10d66c52643174c19b79fa76ab Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 13 Dec 2023 17:28:55 -0500 Subject: [PATCH] Update app.js - process.env.STATE_STORE_NAME Signed-off-by: Mathieu Benoit --- tutorials/hello-kubernetes/node/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/hello-kubernetes/node/app.js b/tutorials/hello-kubernetes/node/app.js index 782404665..68fe0dc4e 100644 --- a/tutorials/hello-kubernetes/node/app.js +++ b/tutorials/hello-kubernetes/node/app.js @@ -22,7 +22,7 @@ app.use(bodyParser.json()); const daprPort = process.env.DAPR_HTTP_PORT ?? "3500"; const daprGRPCPort = process.env.DAPR_GRPC_PORT ?? "50001"; -const stateStoreName = `statestore`; +const stateStoreName = process.env.STATE_STORE_NAME ?? "statestore"; const stateUrl = `http://localhost:${daprPort}/v1.0/state/${stateStoreName}`; const port = process.env.APP_PORT ?? "3000"; @@ -76,4 +76,4 @@ app.get('/ports', (_req, res) => { res.status(200).send({DAPR_HTTP_PORT: daprPort, DAPR_GRPC_PORT: daprGRPCPort }) }); -app.listen(port, () => console.log(`Node App listening on port ${port}!`)); \ No newline at end of file +app.listen(port, () => console.log(`Node App listening on port ${port}!`));