commit 2a3e59e3bba96307ddaaf990b753f3228d5ad84f parent 1ab1964b3bb3c662845a51688bb3328bdd7283e6 Author: Amit Dutta <amitdutta4255@gmail.com> Date: Wed, 3 Sep 2025 20:56:19 +0530 Update server.js Diffstat:
| M | server.js | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/server.js b/server.js @@ -1,13 +1,11 @@ const express = require('express'); const cors = require('cors'); - const app = express(); const port = process.env.PORT || 3000; -// IMPORTANT: This token is placed here for demonstration. -// For production, you should use environment variables. -Github_API = os.getenv("github") -const GITHUB_TOKEN = 'github'; +// Access the GitHub Personal Access Token from Render's environment variables. +// The variable name is set in the Render dashboard. +const GITHUB_TOKEN = process.env.GITHUB_TOKEN; const REPO_OWNER = 'notamitgamer'; const REPO_NAME = 'bsc'; const GITHUB_API_URL = `https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}`;