From 762f17068babc4c3c3e43186e985600bacaf850f Mon Sep 17 00:00:00 2001 From: Pete Walker <108812366+petertimwalker@users.noreply.github.com> Date: Fri, 24 May 2024 11:54:29 -0400 Subject: [PATCH] hide secret --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 021dabc..93cb9b4 100644 --- a/server.js +++ b/server.js @@ -3,7 +3,7 @@ const app = express(); const PORT = process.env.PORT || 3000; // Store your API key securely in an environment variable -const API_KEY = process.env.API_KEY || 'your-default-api-key'; +const API_KEY = process.env.API_KEY || 'API_KEY not defined'; app.get('/api/key', (req, res) => { res.json({ apiKey: API_KEY });