Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1차 데모 #120

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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