From 399880e5e1843246cf77aa140ec778aaa7387e71 Mon Sep 17 00:00:00 2001 From: Evaldo Felipe Date: Wed, 22 Jan 2025 17:18:38 -0300 Subject: [PATCH] update Signed-off-by: Evaldo Felipe --- api/available-routes.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/available-routes.ts b/api/available-routes.ts index a800a7fc7..c7ec4a4b3 100644 --- a/api/available-routes.ts +++ b/api/available-routes.ts @@ -3,8 +3,11 @@ import { object, Infer, optional, string } from "superstruct"; import dotenv from "dotenv"; import { validAddress, positiveIntStr } from "./_utils"; import { TypedVercelRequest } from "./_types"; -import fs from "fs"; -import path from "path"; +import { getEnvs } from "./_env"; + +const { + GIT_ENV_EXPORTED, +} = getEnvs(); const AvailableRoutesQueryParamsSchema = object({ originToken: optional(validAddress()), @@ -28,7 +31,7 @@ type AvailableRoutesQueryParams = Infer< const handler = async (_: any, response: VercelResponse) => { response.status(200).json({ - test: process.env.GIT_ENV_EXPORTED, + test: GIT_ENV_EXPORTED, }); return; };