Skip to content

Commit

Permalink
feat: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer0114 committed Nov 21, 2024
1 parent cca60cd commit e376bdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/hooks/SSE/useSSEOrderbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}/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<EventSource | null>(null);
const [isConnected, setIsConnected] = useState<boolean>(false);
const [sseData, setSSEData] = useState<SSEOrderBook | null>();
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/hooks/SSE/useSSETicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}/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<EventSource | null>(null);
const [isConnected, setIsConnected] = useState<boolean>(false);
const [sseData, setSSEData] = useState<SSEDataType | null>();
Expand Down

0 comments on commit e376bdc

Please sign in to comment.