From cb4b9a076488e5f36506588d97fc51a6c762ff83 Mon Sep 17 00:00:00 2001 From: abhishektiwari003 Date: Thu, 23 Apr 2026 17:54:38 +0530 Subject: [PATCH] changes testing env --- app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 3525f4c..fb95a4f 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,10 @@ const server = http.createServer((req, res) => { if (req.method === "GET" && parsedUrl.pathname === "/") { const key = parsedUrl.searchParams.get("key"); const response = key - ? { message: "added to the response", value: process.env.Test } + ? { + message: "added to the response", + value: process.env[key] ?? "env not found", + } : { message: "key query param not found" }; res.writeHead(200, { "Content-Type": "application/json" });