From a96dba066551b73e6cf957f243f8a80afed5b6db Mon Sep 17 00:00:00 2001 From: Ng Han Inn <43451336+nghaninn@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:21:07 +0800 Subject: [PATCH] fix: tr v5 dev url (#960) --- src/constants/index.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/constants/index.ts b/src/constants/index.ts index 99e3ad65b..5d0020dcc 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1,12 +1,15 @@ -export enum URLS { - INFO = "https://tradetrust.io", - REF = "https://ref.tradetrust.io", - REF_V5TR = "https://v5-token-registry.tradetrust.io", - CREATOR = "https://creator.tradetrust.io/", - GITHUB = "https://github.com/TradeTrust/tradetrust-website", - DOCS = "https://docs.tradetrust.io/", - FAQ = "https://www.tradetrust.io/common-error-faqs/", -} +export const URLS = { + INFO: "https://tradetrust.io", + REF: "https://ref.tradetrust.io", + REF_V5TR: + process?.env?.NODE_ENV === "development" + ? "https://v5-token-registry.dev.tradetrust.io" + : "https://v5-token-registry.tradetrust.io", + CREATOR: "https://creator.tradetrust.io/", + GITHUB: "https://github.com/TradeTrust/tradetrust-website", + DOCS: "https://docs.tradetrust.io/", + FAQ: "https://www.tradetrust.io/common-error-faqs/", +}; export enum FaqType { GENERAL = "General",