Skip to content

Commit

Permalink
fix: api path relative to UI serving location to support reverse prox…
Browse files Browse the repository at this point in the history
…ies with prefix stripping
  • Loading branch information
garethgeorge committed Mar 23, 2024
1 parent 8429174 commit ac7f24e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion webui/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const fetch = (
};

const transport = createConnectTransport({
baseUrl: "/",
baseUrl: "./",
useBinaryFormat: true,
fetch: fetch as typeof globalThis.fetch,
});
Expand Down

0 comments on commit ac7f24e

Please sign in to comment.