diff --git a/packages/client/src/hooks/SSE/useSSEOrderbook.ts b/packages/client/src/hooks/SSE/useSSEOrderbook.ts index 73903aff..1d3c450d 100644 --- a/packages/client/src/hooks/SSE/useSSEOrderbook.ts +++ b/packages/client/src/hooks/SSE/useSSEOrderbook.ts @@ -2,7 +2,7 @@ import { SSEOrderBook } from '@/types/orderbook'; import { useRef, useState, useEffect } from 'react'; export function useSSEOrderbook(targetMarketCodes: { market: string }[]) { - const BASE_URL = `${!import.meta.env.VITE_API_BASE_URL ? 'https://www.corinee.site/api/upbit/orderbook' : import.meta.env.VITE_API_BASE_URL}/api/upbit/orderbook`; + const BASE_URL = `${!import.meta.env.VITE_API_BASE_URL ? 'https://www.corinee.site' : import.meta.env.VITE_API_BASE_URL}/api/upbit/orderbook`; const eventSource = useRef(null); const [isConnected, setIsConnected] = useState(false); const [sseData, setSSEData] = useState(); diff --git a/packages/client/src/hooks/SSE/useSSETicker.ts b/packages/client/src/hooks/SSE/useSSETicker.ts index 075a5e78..3ef63439 100644 --- a/packages/client/src/hooks/SSE/useSSETicker.ts +++ b/packages/client/src/hooks/SSE/useSSETicker.ts @@ -2,7 +2,7 @@ import { SSEDataType } from '@/types/ticker'; import { useEffect, useRef, useState } from 'react'; export function useSSETicker(targetMarketCodes: { market: string }[]) { - const BASE_URL = `${!import.meta.env.VITE_API_BASE_URL ? 'https://www.corinee.site/api/upbit/price-updates' : import.meta.env.VITE_API_BASE_URL}/api/upbit/price-updates`; + const BASE_URL = `${!import.meta.env.VITE_API_BASE_URL ? 'https://www.corinee.site' : import.meta.env.VITE_API_BASE_URL}/api/upbit/price-updates`; const eventSource = useRef(null); const [isConnected, setIsConnected] = useState(false); const [sseData, setSSEData] = useState();