Overnap
Builds for 1 pipeline failed in 1 minute 13 seconds

서버 연결을 위한 리액트 포트 수정

...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
23 "web-vitals": "^1.0.1" 23 "web-vitals": "^1.0.1"
24 }, 24 },
25 "scripts": { 25 "scripts": {
26 - "start": "npm run twcss && react-scripts start", 26 + "start": "npm run twcss && set PORT=3001 && react-scripts start",
27 "build": "npm run twcss && react-scripts build", 27 "build": "npm run twcss && react-scripts build",
28 "test": "react-scripts test", 28 "test": "react-scripts test",
29 "eject": "react-scripts eject", 29 "eject": "react-scripts eject",
......
1 import React from 'react'; 1 import React from 'react';
2 import { io } from 'socket.io-client'; 2 import { io } from 'socket.io-client';
3 3
4 -export const socket = io('http://localhost/'); 4 +export const socket = io('http://localhost:3000/');
5 const SocketContext = React.createContext(socket); 5 const SocketContext = React.createContext(socket);
6 6
7 export const SocketProvider = SocketContext.Provider; 7 export const SocketProvider = SocketContext.Provider;
......