@base44-preview/cli 0.0.47-pr.435.4c068d6 → 0.0.47-pr.439.0c055af

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,6 @@
9
9
  * - BASE44_APP_ID: App identifier from .app.jsonc
10
10
  * - BASE44_ACCESS_TOKEN: User's access token
11
11
  * - BASE44_APP_BASE_URL: App's published URL / subdomain (used for function calls)
12
- * - BASE44_ADMIN: When "true", adds X-Bypass-RLS header for admin access
13
12
  */
14
13
 
15
14
  export {};
@@ -18,8 +17,6 @@ const scriptPath = Deno.env.get("SCRIPT_PATH");
18
17
  const appId = Deno.env.get("BASE44_APP_ID");
19
18
  const accessToken = Deno.env.get("BASE44_ACCESS_TOKEN");
20
19
  const appBaseUrl = Deno.env.get("BASE44_APP_BASE_URL");
21
- const isAdmin = Deno.env.get("BASE44_ADMIN") === "true";
22
- const dataEnv = Deno.env.get("BASE44_DATA_ENV");
23
20
 
24
21
  if (!scriptPath) {
25
22
  console.error("SCRIPT_PATH environment variable is required");
@@ -38,15 +35,10 @@ if (!appBaseUrl) {
38
35
 
39
36
  import { createClient } from "npm:@base44/sdk";
40
37
 
41
- const customHeaders: Record<string, string> = {};
42
- if (isAdmin) customHeaders["X-Bypass-RLS"] = "true";
43
- if (dataEnv) customHeaders["X-Data-Env"] = dataEnv;
44
-
45
38
  const base44 = createClient({
46
39
  appId,
47
40
  token: accessToken,
48
41
  serverUrl: appBaseUrl,
49
- headers: customHeaders,
50
42
  });
51
43
 
52
44
  (globalThis as any).base44 = base44;