Skip to content

Commit

Permalink
chore(profile): Get subgraph from env first
Browse files Browse the repository at this point in the history
  • Loading branch information
chef-huan committed May 27, 2024
1 parent 5f9632b commit 013cb93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/index.ts
Original file line number Diff line number Diff line change
@@ -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).
Expand Down

0 comments on commit 013cb93

Please sign in to comment.