Skip to content

Commit ad5bcc5

Browse files
Merge pull request #256 from Real-Dev-Squad/ankushdharkar-debugging-env
Update index.ts
2 parents 73a9f85 + 0d87628 commit ad5bcc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import { generateInviteLink } from "./controllers/generateDiscordInvite";
2222
import { sendProfileBlockedMessage } from "./controllers/profileHandler";
2323
import { sendTaskUpdatesHandler } from "./controllers/taskUpdatesHandler";
2424

25+
import config from "./config/config";
26+
2527
const router = Router();
2628

2729
router.get("/", async () => {
@@ -62,8 +64,10 @@ router.post("/task/update", sendTaskUpdatesHandler);
6264

6365
router.get("/ankush", async (request, env, ctx: ExecutionContext) => {
6466
ctx.waitUntil(send(env));
67+
68+
const url = config(env).TRACKING_CHANNEL_URL;
6569

66-
return new JSONResponse(`CURRENT_ENVIRONMENT: ${env.CURRENT_ENVIRONMENT}`, { status: 200 });
70+
return new JSONResponse(`CURRENT_ENVIRONMENT: ${env.CURRENT_ENVIRONMENT}, tracking url - ${url}`, { status: 200 });
6771
});
6872

6973

0 commit comments

Comments
 (0)