From 432e58ebc4020a59d2c19b5121619abefc2ac941 Mon Sep 17 00:00:00 2001 From: Henry Palacios Date: Tue, 5 Mar 2024 17:58:44 -0300 Subject: [PATCH] Move links --- src/constants/config.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/constants/config.ts b/src/constants/config.ts index fd36691..e13eed4 100644 --- a/src/constants/config.ts +++ b/src/constants/config.ts @@ -3,23 +3,13 @@ import { ChainId } from '@/services/useink/chains' export const IS_PRODUCTION = process.env.NODE_ENV === ('production' as string) export const IS_DEVELOPMENT = process.env.NODE_ENV === ('development' as string) -/** URL of the API will be rewritten in next.config */ -export const apiBaseUrlPath = `/api` - -export const BACKEND_API = getBackendApiConfig(apiBaseUrlPath) - -export const DOCUMENTATION_URL = - process.env.NEXT_PUBLIC_DOCUMENTATION_URL || - 'https://docs.contractwizard.xyz/' - -export const ANALYTICS_ID = (process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID || - '') as string - export const DEFAULT_CHAIN: ChainId = IS_DEVELOPMENT ? 'shibuya-testnet' : 'astar' export const DOMAIN = process.env.NEXT_PUBLIC_DOMAIN as string +export const ANALYTICS_ID = (process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID || + '') as string export interface DappConfig { name: string @@ -90,3 +80,12 @@ export function getBackendApiConfig(basePath: string): BackendApiConfig { }, {} as RouteApi) } } + +/** URL of the API will be rewritten in next.config */ +export const apiBaseUrlPath = `/api` + +export const BACKEND_API = getBackendApiConfig(apiBaseUrlPath) + +export const DOCUMENTATION_URL = + process.env.NEXT_PUBLIC_DOCUMENTATION_URL || + 'https://docs.contractwizard.xyz/'