Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/swap-widget/src/api/client.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/swap-widget/src/demo/ExternalWalletApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -102,6 +103,7 @@ const ExternalDemoBody = ({ theme, setTheme }: ExternalDemoBodyProps) => {
const widget = useMemo(
() => (
<SwapWidget
apiBaseUrl={API_BASE_URL}
partnerCode={partnerCode || undefined}
theme={themeConfig}
onSwapSuccess={handleSwapSuccess}
Expand Down
2 changes: 2 additions & 0 deletions packages/swap-widget/src/demo/InternalWalletApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,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')

Expand All @@ -32,6 +33,7 @@ const InternalDemoBody = ({ theme, setTheme }: InternalDemoBodyProps) => {
const widget = useMemo(
() => (
<SwapWidget
apiBaseUrl={API_BASE_URL}
partnerCode={partnerCode || undefined}
theme={themeConfig}
onSwapSuccess={handleSwapSuccess}
Expand Down
Loading