From 3f5db4be22042633bcde8342d775a573c4a67e52 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Sun, 22 Dec 2024 00:54:57 +0300 Subject: [PATCH] fix(frontend): update websocket server default address --- apps/frontend/README.md | 2 +- apps/frontend/src/const/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/README.md b/apps/frontend/README.md index d028fcf..873596b 100644 --- a/apps/frontend/README.md +++ b/apps/frontend/README.md @@ -23,5 +23,5 @@ This package depends on the local packages `@mancala/core` and `mancala.js`. Ref ### Docker Build ```bash -docker build --build-arg SERVER_ADDRESS=http://localhost:5000 --build-arg WS_SERVER_ADDRESS=http://localhost:5000 -t mancala-frontend . +docker build --build-arg SERVER_ADDRESS=http://localhost:5000 --build-arg WS_SERVER_ADDRESS=ws://localhost:5000 -t mancala-frontend . ``` \ No newline at end of file diff --git a/apps/frontend/src/const/config.ts b/apps/frontend/src/const/config.ts index 63dea66..4da4a82 100644 --- a/apps/frontend/src/const/config.ts +++ b/apps/frontend/src/const/config.ts @@ -6,7 +6,7 @@ export type Server = { }; export const LOCAL_SERVER_ADDRESS='http://localhost:5005'; -export const LOCAL_WS_SERVER_ADDRESS='http://localhost:5005'; +export const LOCAL_WS_SERVER_ADDRESS='ws://localhost:5005'; export const server: Server = { //@ts-ignore