get ingress to play nice with vite

This commit is contained in:
Blake Blackshear
2022-05-19 07:31:02 -05:00
parent 7b2b5bfa71
commit ca7bad8909
6 changed files with 12 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ export function MqttProvider({
config,
children,
createWebsocket = defaultCreateWebsocket,
mqttUrl = `${baseUrl.replace(/^http/, 'ws')}/ws`,
mqttUrl = `${baseUrl.replace(/^http/, 'ws')}ws`,
}) {
const [state, dispatch] = useReducer(reducer, initialState);
const wsRef = useRef();