Skip to content

Commit

Permalink
fix: EventSource subscribe url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwl98 committed Nov 27, 2023
1 parent a199ed0 commit dc6deed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const queryClient = new QueryClient({

function App() {
useEventSource(
'/api/alarms/subscribe',
`${import.meta.env.VITE_BASE_URL}/alarms/subscribe`,
() => {
queryClient.resetQueries({ queryKey: ['alarms'] });
queryClient
Expand Down

0 comments on commit dc6deed

Please sign in to comment.