From a0f0f4dd456da3f7b7be4d4956272aa7533979d6 Mon Sep 17 00:00:00 2001 From: Ng Han Inn <43451336+nghaninn@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:29:34 +0800 Subject: [PATCH] fix: tr dev url (#961) --- src/constants/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/constants/index.ts b/src/constants/index.ts index a3df2e91e..2d82cef2f 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1,11 +1,11 @@ -export enum URLS { - INFO = "https://tradetrust.io", - REF = "https://ref.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: process.env.NODE_ENV === "development" ? "https://dev.tradetrust.io" : "https://ref.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",