Skip to content

Commit 275e6b6

Browse files
fix: handle missing VITE_WEBSOCKET_URL
1 parent 249d04f commit 275e6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/ws/ConnectionProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414

1515
const VITE_WEBSOCKET_URL = (
1616
import.meta.env.VITE_WEBSOCKET_URL as string
17-
).trim();
17+
)?.trim();
1818

1919
export function ConnectionProvider({ children }: PropsWithChildren) {
2020
const [ctxValue, _setCtxValue] = useState(defaultCtxValue);

0 commit comments

Comments
 (0)