We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f32631a commit 6ebb882Copy full SHA for 6ebb882
1 file changed
src/modules/entities.ts
@@ -49,6 +49,13 @@ function createEntityHandler(
49
entityName: string
50
): EntityHandler {
51
const baseURL = `/apps/${appId}/entities/${entityName}`;
52
+ const isDevMode = new URLSearchParams(window.location.search).get("use_dev_table") === "true";
53
+
54
+ axios.interceptors.request.use((config) => {
55
+ config.headers = config.headers ?? {};
56
+ config.headers["X-Dev-Mode"] = String(isDevMode);
57
+ return config;
58
+ });
59
60
return {
61
// List entities with optional pagination and sorting
0 commit comments