From c8bcf5d8332f02c28ed01da6de02be4f9a0e0e68 Mon Sep 17 00:00:00 2001 From: chef-huan <93581122+chef-huan@users.noreply.github.com> Date: Mon, 27 May 2024 19:33:08 +0700 Subject: [PATCH] chore(profile): Get subgraph from env first (#132) --- utils/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/index.ts b/utils/index.ts index 588fe059..bfca01a3 100644 --- a/utils/index.ts +++ b/utils/index.ts @@ -1,7 +1,8 @@ import blacklist from "./blacklist.json"; import { getModel } from "./mongo"; -export const PROFILE_SUBGRAPH = "https://api.thegraph.com/subgraphs/name/pancakeswap/profile"; +export const PROFILE_SUBGRAPH = + process.env.PROFILE_SUBGRAPH_URL || "https://api.thegraph.com/subgraphs/name/pancakeswap/profile"; /** * Check for the validity of a username based on rules (see documentation).