diff --git a/packages/swap-widget/src/api/client.ts b/packages/swap-widget/src/api/client.ts index d4df7e4383e..352a3aa00ee 100644 --- a/packages/swap-widget/src/api/client.ts +++ b/packages/swap-widget/src/api/client.ts @@ -1,7 +1,6 @@ import type { AssetId, AssetsResponse, QuoteResponse, RatesResponse } from '../types' -const DEFAULT_API_BASE_URL = - import.meta.env.VITE_SWAP_WIDGET_API_URL ?? 'https://api.shapeshift.com' +const DEFAULT_API_BASE_URL = 'https://api.shapeshift.com' export type ApiClientConfig = { baseUrl?: string diff --git a/packages/swap-widget/src/demo/ExternalWalletApp.tsx b/packages/swap-widget/src/demo/ExternalWalletApp.tsx index dd2c42ec65e..df1afd977a7 100644 --- a/packages/swap-widget/src/demo/ExternalWalletApp.tsx +++ b/packages/swap-widget/src/demo/ExternalWalletApp.tsx @@ -31,6 +31,7 @@ import { DemoCustomizer, useDemoTheme } from './DemoCustomizer' import { WidgetModal } from './WidgetModal' const PROJECT_ID = import.meta.env.VITE_WALLETCONNECT_PROJECT_ID +const API_BASE_URL = import.meta.env.VITE_SWAP_WIDGET_API_URL if (!PROJECT_ID) throw new Error('VITE_WALLETCONNECT_PROJECT_ID is not set') @@ -102,6 +103,7 @@ const ExternalDemoBody = ({ theme, setTheme }: ExternalDemoBodyProps) => { const widget = useMemo( () => ( { const widget = useMemo( () => (