update: data explorer was using v2 api in development, moving to v3 for production
This commit is contained in:
@@ -81,7 +81,7 @@ export default function DataExplorer() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// 🚨 Relative pathing for your production API
|
// 🚨 Relative pathing for your production API
|
||||||
const response = await fetch(`/api/v2/table_view?${buildUrlParams()}`);
|
const response = await fetch(`/api/v3/table_view?${buildUrlParams()}`);
|
||||||
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
|
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ export default function QueryBuilder({ url, setUrl, allColumns, getColumns, pull
|
|||||||
const selectedView = e.target.value;
|
const selectedView = e.target.value;
|
||||||
setUrl(prev => ({ ...prev, source: selectedView }));
|
setUrl(prev => ({ ...prev, source: selectedView }));
|
||||||
// 🚨 FIXED: Now uses relative pathing for the production API
|
// 🚨 FIXED: Now uses relative pathing for the production API
|
||||||
const endpoint = "/api/v2/view_dash_event_search_columns";
|
const endpoint = "/api/v3/view_dash_event_search_columns";
|
||||||
getColumns(endpoint);
|
getColumns(endpoint);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user