Skip to content

Commit

Permalink
fix: deploy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 21, 2024
1 parent 2eac788 commit 508ddb7
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@nestjs/websockets": "^10.4.7",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"dotenv": "^16.4.5",
"ws": "^8.18.0"
}
}
1 change: 0 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@material-tailwind/react": "^2.1.10",
"@tanstack/react-query": "^5.59.19",
"axios": "^1.7.7",
"dotenv": "^16.4.5",
"lightweight-charts": "^4.2.1",
"lodash": "^4.17.21",
"lottie-react": "^2.4.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/client/src/api/instance.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import axios from 'axios';
import {config} from 'dotenv'

config();

export const instance = axios.create({
baseURL: process.env.VITE_API_BASE_URL,
baseURL: import.meta.env.VITE_API_BASE_URL,
withCredentials: true,
timeout: 2000,
});
Expand Down
5 changes: 1 addition & 4 deletions packages/client/src/hooks/SSE/useSSEOrderbook.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { SSEOrderBook } from '@/types/orderbook';
import { useRef, useState, useEffect } from 'react';
import {config} from 'dotenv'

config();

export function useSSEOrderbook(targetMarketCodes: { market: string }[]) {
const BASE_URL = `${process.env.VITE_API_BASE_URL}/upbit/orderbook`;
const BASE_URL = `${import.meta.env.VITE_API_BASE_URL}/upbit/orderbook`;
const eventSource = useRef<EventSource | null>(null);
const [isConnected, setIsConnected] = useState<boolean>(false);
const [sseData, setSSEData] = useState<SSEOrderBook | null>();
Expand Down
5 changes: 1 addition & 4 deletions packages/client/src/hooks/SSE/useSSETicker.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { SSEDataType } from '@/types/ticker';
import { useEffect, useRef, useState } from 'react';
import {config} from 'dotenv'

config();

export function useSSETicker(targetMarketCodes: { market: string }[]) {
const BASE_URL = `${process.env.VITE_API_BASE_URL}/upbit/price-updates`;
const BASE_URL = `${import.meta.env.VITE_API_BASE_URL}/upbit/price-updates`;
const eventSource = useRef<EventSource | null>(null);
const [isConnected, setIsConnected] = useState<boolean>(false);
const [sseData, setSSEData] = useState<SSEDataType | null>();
Expand Down
2 changes: 0 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3870,7 +3870,6 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.3.3"
autoprefixer: "npm:^10.4.20"
axios: "npm:^1.7.7"
dotenv: "npm:^16.4.5"
eslint: "npm:^9.13.0"
eslint-plugin-react-hooks: "npm:^5.0.0"
eslint-plugin-react-refresh: "npm:^0.4.13"
Expand Down Expand Up @@ -10157,7 +10156,6 @@ __metadata:
"@nestjs/websockets": "npm:^10.4.7"
class-transformer: "npm:^0.5.1"
class-validator: "npm:^0.14.1"
dotenv: "npm:^16.4.5"
eslint: "npm:^8.0.0"
eslint-config-prettier: "npm:^9.1.0"
prettier: "npm:^3.3.3"
Expand Down

0 comments on commit 508ddb7

Please sign in to comment.