Skip to content

Commit

Permalink
Merge pull request #120 from tukcomCD2024/1차데모
Browse files Browse the repository at this point in the history
1차 데모
  • Loading branch information
SINHJ1 authored Mar 18, 2024
2 parents 34a9cb7 + c643aa0 commit 64ff26e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Component/Auth/SignupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ const SignupPage = () => {
toastr.success("회원가입 성공! 로그인을 진행해주세요.");
navigate("/login");
} else {
// 서버 응답에서 반환된 에러 메시지를 사용하여 사용자에게 보다 구체적인 정보 제공
const errorData = await response.json();
const errorData = await response.text();
alert(`회원가입 실패: ${errorData.message}`);
}
} catch (error) {

console.error("Error:", error);
alert("처리에 실패하였습니다.");
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Component/Page/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function Page() {
const roomId = noteId;
const ydoc = getYDocInstance(roomId);
const provider = new WebsocketProvider(
"ws://localhost:4000", // 웹소켓 서버 주소, // 웹소켓 서버 주소
"wss://demos.yjs.dev/ws", // 웹소켓 서버 주소, // 웹소켓 서버 주소
roomId, // 방 이름
ydoc
);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/setupProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = function(app) {
app.use(
'/api',
createProxyMiddleware({
target: 'http://localhost:8080', // 서버 URL or localhost:설정한포트번호
//target: 'https://sharenote.shop:8080', // 서버 URL or localhost:설정한포트번호
// target: 'http://localhost:8080', // 서버 URL or localhost:설정한포트번호
target: 'http://sharenote.shop:8080', // 서버 URL or localhost:설정한포트번호
changeOrigin: true,
})
);
Expand Down

0 comments on commit 64ff26e

Please sign in to comment.