diff --git a/webui/package.json b/webui/package.json index 37c36b950..75ab76035 100644 --- a/webui/package.json +++ b/webui/package.json @@ -6,8 +6,8 @@ "start": "parcel serve src/index.html", "clean": "rimraf dist", "clean-windows": "rimraf dist-windows", - "build": "cross-env UI_OS=unix parcel build src/index.html", - "build-windows": "cross-env UI_OS=windows parcel build src/index.html --dist-dir dist-windows", + "build": "cross-env UI_OS=unix parcel build src/index.html --public-url ./", + "build-windows": "cross-env UI_OS=windows parcel build src/index.html --dist-dir dist-windows --public-url ./", "check": "tsc --noEmit" }, "author": "", diff --git a/webui/src/api.ts b/webui/src/api.ts index 0e7409f2a..d6a45e608 100644 --- a/webui/src/api.ts +++ b/webui/src/api.ts @@ -24,7 +24,7 @@ const fetch = ( }; const transport = createConnectTransport({ - baseUrl: "/", + baseUrl: "./", useBinaryFormat: true, fetch: fetch as typeof globalThis.fetch, });