Skip to content

Commit 09a598e

Browse files
author
Sotnichenko, Sergey
committed
Fix bug (feast-dev#3481) but only with hardcoded feastui as root page
1 parent d3b7c06 commit 09a598e

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎sdk/python/feast/ui_server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def shutdown_event():
6262
"name": "Project",
6363
"description": "Test project",
6464
"id": project_id,
65-
"registryPath": "/registry",
65+
"registryPath": "/feastui/registry",
6666
}
6767
]
6868
}

‎ui/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"files": [
66
"dist"
77
],
8+
"homepage": "/feastui",
89
"main": "./dist/feast-ui.cjs",
910
"module": "./dist/feast-ui.module.js",
1011
"peerDependencies": {

‎ui/src/FeastUI.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const FeastUI = ({ reactQueryClient, feastUIConfigs }: FeastUIProps) => {
1717
const queryClient = reactQueryClient || defaultQueryClient;
1818

1919
return (
20-
<BrowserRouter>
20+
<BrowserRouter basename='/feastui'>
2121
<QueryClientProvider client={queryClient}>
2222
<QueryParamProvider
2323
ReactRouterRoute={RouteAdapter as unknown as React.FunctionComponent}

‎ui/src/FeastUISansProviders.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface FeastUIConfigs {
4141
}
4242

4343
const defaultProjectListPromise = () => {
44-
return fetch("/projects-list.json", {
44+
return fetch("/feastui/projects-list.json", {
4545
headers: {
4646
"Content-Type": "application/json",
4747
},

‎ui/src/mocks/handlers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "path";
55
const registry = readFileSync(path.resolve(__dirname, "../../public/registry.db"));
66

77
const projectsListWithDefaultProject = rest.get(
8-
"/projects-list.json",
8+
"/feastui/projects-list.json",
99
(req, res, ctx) => {
1010
return res(
1111
ctx.status(200),

0 commit comments

Comments
 (0)