Skip to content

Commit

Permalink
Merge pull request #89 from BacPacNet/fix-refactor-timeline
Browse files Browse the repository at this point in the history
fix: env fixed
  • Loading branch information
bacpactech authored Sep 25, 2024
2 parents e8fc76f + db0a1e4 commit 0a31cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/socketSlice/socketSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const createSocketSlice: StateCreator<SocketSlice> = (set, get) => ({
...initialState,

initializeSocket: (userId, refetchUserData, refetchNotification, refetchUserProfileData) => {
const newSocket = io('http://localhost:8000')
const newSocket = io(process.env.NEXT_PUBLIC_API_BASE_URL as string)

newSocket.on('connect', () => {
console.log('Connected to the server')
Expand Down

0 comments on commit 0a31cd3

Please sign in to comment.