diff --git a/client/src/common/utils/socket.js b/client/src/common/utils/socket.js new file mode 100644 index 0000000..b3505f3 --- /dev/null +++ b/client/src/common/utils/socket.js @@ -0,0 +1,5 @@ +import { io } from 'socket.io-client'; + +const URL = process.env.NODE_ENV === "production" ? "https://pmg-api.gnmyt.dev" : "http://localhost:3000"; + +export const socket = io(URL); \ No newline at end of file