diff --git a/front/src/jp/pages/chat/chat.jsx b/front/src/jp/pages/chat/chat.jsx index f6021f8d..d88d232b 100644 --- a/front/src/jp/pages/chat/chat.jsx +++ b/front/src/jp/pages/chat/chat.jsx @@ -65,7 +65,7 @@ const Chat = () => { const connect = () => { if (stompClient.current && stompClient.current.connected) return; const socketFactory = () => { - const socket = new WebSocket("wss://i12a703.p.ssafy.io/ws-connect"); + const socket = new WebSocket("wss://docshund.site/ws-connect"); socket.onerror = (event) => { // console.error("WebSocket Error:", event); toast.error("웹소켓 연결 오류가 발생했습니다.", { diff --git a/front/src/kr/pages/chat/chat.jsx b/front/src/kr/pages/chat/chat.jsx index f6021f8d..d88d232b 100644 --- a/front/src/kr/pages/chat/chat.jsx +++ b/front/src/kr/pages/chat/chat.jsx @@ -65,7 +65,7 @@ const Chat = () => { const connect = () => { if (stompClient.current && stompClient.current.connected) return; const socketFactory = () => { - const socket = new WebSocket("wss://i12a703.p.ssafy.io/ws-connect"); + const socket = new WebSocket("wss://docshund.site/ws-connect"); socket.onerror = (event) => { // console.error("WebSocket Error:", event); toast.error("웹소켓 연결 오류가 발생했습니다.", { diff --git a/front/src/services/notificationService.jsx b/front/src/services/notificationService.jsx index 60aed061..767d299d 100644 --- a/front/src/services/notificationService.jsx +++ b/front/src/services/notificationService.jsx @@ -6,7 +6,7 @@ const NotificationService = { async fetchNotifications() { try { const response = await axiosJsonInstance.get( - `https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 불러오기 + `https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 불러오기 ); const data = response.data; @@ -22,7 +22,7 @@ const NotificationService = { async readNotification(alertId) { try { const response = await axiosJsonInstance.patch( - `https://i12a703.p.ssafy.io/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 불러오기 + `https://docshund.site/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 불러오기 ); const status = response.status; @@ -38,7 +38,7 @@ const NotificationService = { async readAllNotifications() { try { const response = await axiosJsonInstance.patch( - `https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 전체 읽음 처리 + `https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 전체 읽음 처리 ); const status = response.status; @@ -54,7 +54,7 @@ const NotificationService = { async deleteNotification(alertId) { try { const response = await axiosJsonInstance.delete( - `https://i12a703.p.ssafy.io/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 삭제 + `https://docshund.site/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 삭제 ); const status = response.status; @@ -70,7 +70,7 @@ const NotificationService = { async deleteAllNotifications() { try { const response = await axiosJsonInstance.delete( - `https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 전체 삭제 + `https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 전체 삭제 ); const status = response.status; diff --git a/front/src/store/authStore.jsx b/front/src/store/authStore.jsx index 67b5ba58..8712b5bb 100644 --- a/front/src/store/authStore.jsx +++ b/front/src/store/authStore.jsx @@ -12,14 +12,14 @@ const useAuthStore = create((set, get) => ({ loginWithGoogle: () => { window.location.href = - "https://i12a703.p.ssafy.io/oauth2/authorization/google"; + "https://docshund.site/oauth2/authorization/google"; }, // GitHub 로그인 함수 loginWithGithub: () => { // GitHub 로그인 페이지로 리다이렉트 window.location.href = - "https://i12a703.p.ssafy.io/oauth2/authorization/github"; + "https://docshund.site/oauth2/authorization/github"; }, // 로그아웃 함수