Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(frontend): use JSON format for gRPC in development mode (#18799)

boojackeed536758007
diff --git a/frontend/src/connect/index.ts b/frontend/src/connect/index.ts
index 9a406601bb..0a23da5f24 100644
--- a/frontend/src/connect/index.ts
+++ b/frontend/src/connect/index.ts
@@ -32,12 +32,13 @@ import {
errorNotificationInterceptor,
activeInterceptor,
} from "./middlewares";
+import { isDev } from "@/utils";
const address = import.meta.env.BB_GRPC_LOCAL || window.location.origin;
const transport = createConnectTransport({
baseUrl: address,
- useBinaryFormat: true,
+ useBinaryFormat: isDev() ? false : true,
interceptors: [
authInterceptor,
activeInterceptor,