Skip to content

Commit b641677

Browse files
Make feature server URL configurable in UI
Signed-off-by: kchawlani19 <kchawlan@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6f5203a commit b641677

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/src/pages/feature-views/CurlGeneratorTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ const CurlGeneratorTab = ({
2020
feastObjectQuery,
2121
}: RegularFeatureViewCustomTabProps) => {
2222
const data = feastObjectQuery.data as any;
23+
const defaultServerUrl =
24+
process.env.REACT_APP_FEAST_FEATURE_SERVER_URL || "http://localhost:6566";
2325
const [serverUrl, setServerUrl] = useState(() => {
2426
const savedUrl = localStorage.getItem("feast-feature-server-url");
25-
return savedUrl || "http://localhost:6566";
27+
return savedUrl || defaultServerUrl;
2628
});
2729
const [entityValues, setEntityValues] = useState<Record<string, string>>({});
2830
const [selectedFeatures, setSelectedFeatures] = useState<

0 commit comments

Comments
 (0)