@hot-updater/supabase 1.0.0-rc.42 → 1.0.0-rc.44

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.
package/dist/edge.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_plugins = require("./plugins-C3qJSy3_.cjs");
2
+ const require_plugins = require("./plugins-DRcrMSAn.cjs");
3
3
  //#region src/supabaseEdgeFunctionStorage.ts
4
4
  const supabaseEdgeFunctionStorage = (config) => require_plugins.supabaseStorage(config);
5
5
  //#endregion
package/dist/edge.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as supabaseStorage, r as supabaseDatabase, t as plugins } from "./plugins-Do0arFjS.mjs";
1
+ import { n as supabaseStorage, r as supabaseDatabase, t as plugins } from "./plugins-CgGacXOe.mjs";
2
2
  //#region src/supabaseEdgeFunctionStorage.ts
3
3
  const supabaseEdgeFunctionStorage = (config) => supabaseStorage(config);
4
4
  //#endregion
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_plugins = require("./plugins-C3qJSy3_.cjs");
2
+ const require_plugins = require("./plugins-DRcrMSAn.cjs");
3
3
  let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
4
4
  //#region src/supabaseSchema.ts
5
5
  /** Every table the apply RPC may name: models, index tables, settings, and the write guard. */
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as SUPABASE_TABLE_PREFIX, i as SUPABASE_APPLY_FUNCTION, n as supabaseStorage, r as supabaseDatabase$1, t as plugins } from "./plugins-Do0arFjS.mjs";
1
+ import { a as SUPABASE_TABLE_PREFIX, i as SUPABASE_APPLY_FUNCTION, n as supabaseStorage, r as supabaseDatabase$1, t as plugins } from "./plugins-CgGacXOe.mjs";
2
2
  import { SETTINGS_TABLE, WRITE_GUARD_TABLE, coreSettings, coreTarget, createTableStatements, generateEngineSql, isMultiIndex } from "@hot-updater/plugin-core";
3
3
  //#region src/supabaseSchema.ts
4
4
  /** Every table the apply RPC may name: models, index tables, settings, and the write guard. */
@@ -46,9 +46,7 @@ let node_fs = require("node:fs");
46
46
  let node_stream_promises = require("node:stream/promises");
47
47
  let node_stream = require("node:stream");
48
48
  let node_buffer = require("node:buffer");
49
- let _hot_updater_server_plugins_api_keys = require("@hot-updater/server/plugins/api-keys");
50
- let _hot_updater_server_plugins_insights = require("@hot-updater/server/plugins/insights");
51
- let _hot_updater_server_plugins_remote_config = require("@hot-updater/server/plugins/remote-config");
49
+ let _hot_updater_server_plugins = require("@hot-updater/server/plugins");
52
50
  let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
53
51
  let _supabase_supabase_js = require("@supabase/supabase-js");
54
52
  //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/_internal/globalThis.mjs
@@ -6340,9 +6338,9 @@ const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcEx
6340
6338
  * client route, and Remote Config. Its Edge Function imports this list.
6341
6339
  */
6342
6340
  const plugins = [
6343
- (0, _hot_updater_server_plugins_insights.insights)(),
6344
- (0, _hot_updater_server_plugins_api_keys.apiKeys)(),
6345
- (0, _hot_updater_server_plugins_remote_config.remoteConfig)()
6341
+ (0, _hot_updater_server_plugins.insights)(),
6342
+ (0, _hot_updater_server_plugins.apiKeys)(),
6343
+ (0, _hot_updater_server_plugins.remoteConfig)()
6346
6344
  ];
6347
6345
  //#endregion
6348
6346
  //#region src/supabaseConfig.ts
@@ -6442,10 +6440,14 @@ const getConfigScaffold = (build) => {
6442
6440
  })`
6443
6441
  }).setPlugins({
6444
6442
  imports: [{
6445
- pkg: "@hot-updater/supabase",
6446
- named: ["plugins"]
6443
+ pkg: "hot-updater/plugins",
6444
+ named: [
6445
+ "apiKeys",
6446
+ "insights",
6447
+ "remoteConfig"
6448
+ ]
6447
6449
  }],
6448
- configString: "plugins"
6450
+ configString: "[apiKeys(), insights(), remoteConfig()]"
6449
6451
  }));
6450
6452
  };
6451
6453
  //#endregion
@@ -7075,24 +7077,6 @@ const SUPABASE_STORAGE_READINESS_MAX_ATTEMPTS = 300;
7075
7077
  const SUPABASE_STORAGE_READINESS_POLL_INTERVAL_MS = 1e3;
7076
7078
  const SUPABASE_SCHEMA_READINESS_MAX_ATTEMPTS = 60;
7077
7079
  const SUPABASE_SCHEMA_READINESS_POLL_INTERVAL_MS = 1e3;
7078
- const LEGACY_SUPABASE_CATALOG_CDN_URL_ENV_KEY = "HOT_UPDATER_SUPABASE_CATALOG_CDN_URL";
7079
- const getLegacySupabaseConfigReference = (configText) => {
7080
- if (configText.includes("HOT_UPDATER_SUPABASE_ANON_KEY")) return "HOT_UPDATER_SUPABASE_ANON_KEY";
7081
- if (/\bsupabaseAnonKey\s*:/.test(configText)) return "supabaseAnonKey";
7082
- return null;
7083
- };
7084
- const assertSkippedConfigDoesNotUseLegacySupabaseKey = async (configWriteResult) => {
7085
- if (configWriteResult.status !== "skipped") return;
7086
- const configText = await fs_promises.default.readFile(configWriteResult.path, "utf-8").catch((error) => {
7087
- if (error.code === "ENOENT") return null;
7088
- throw error;
7089
- });
7090
- const legacyReference = configText === null ? null : getLegacySupabaseConfigReference(configText);
7091
- if (!legacyReference) return;
7092
- _hot_updater_cli_tools.p.log.error(`Existing '${configWriteResult.path}' still references '${legacyReference}'.`);
7093
- _hot_updater_cli_tools.p.log.message("Update it to use 'supabaseServiceRoleKey' with 'HOT_UPDATER_SUPABASE_SERVICE_ROLE_KEY', then run init again.");
7094
- process.exit(1);
7095
- };
7096
7080
  /** The Edge Function URL an app sets as its baseURL. */
7097
7081
  const getSupabaseFunctionUrl = ({ functionName, projectId }) => `https://${projectId}.supabase.co/functions/v1/${functionName}`;
7098
7082
  const reportSupabaseOriginCatalogReady = () => {
@@ -7634,7 +7618,7 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7634
7618
  });
7635
7619
  const persistDatabasePassword = persistCredentialInputs && dbPassword !== "";
7636
7620
  if (persistDatabasePassword) providerEnv[SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY] = project.id;
7637
- await (0, _hot_updater_cli_tools.makeEnv)(providerEnv, ".env.hotupdater", { removeKeys: [LEGACY_SUPABASE_CATALOG_CDN_URL_ENV_KEY, ...persistDatabasePassword ? [] : [databasePasswordKey, SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY]] });
7621
+ await (0, _hot_updater_cli_tools.makeEnv)(providerEnv, ".env.hotupdater", { removeKeys: persistDatabasePassword ? [] : [databasePasswordKey, SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY] });
7638
7622
  const bucket = await createSelectedBucket(projectAccess.api, bucketSelection);
7639
7623
  await (0, _hot_updater_cli_tools.makeEnv)({
7640
7624
  [initProvider.inputs.projectId.envKey]: project.id,
@@ -7675,11 +7659,10 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7675
7659
  await removeTmpDir();
7676
7660
  }
7677
7661
  _hot_updater_cli_tools.p.log.success("Generated '.env.hotupdater' file with Supabase settings.");
7678
- const files = await (0, _hot_updater_cli_tools.writeHotUpdaterFiles)(getConfigScaffold(build), {
7662
+ await (0, _hot_updater_cli_tools.writeHotUpdaterFiles)(getConfigScaffold(build), {
7679
7663
  cwd: process.cwd(),
7680
7664
  settings: "Supabase"
7681
7665
  });
7682
- await assertSkippedConfigDoesNotUseLegacySupabaseKey(files.config);
7683
7666
  (0, _hot_updater_cli_tools.printAppSetup)({
7684
7667
  baseURL: getSupabaseFunctionUrl({
7685
7668
  functionName,
@@ -7695,7 +7678,6 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7695
7678
  const runInit = (options) => withSupabaseCliMetadataCleanup(process.cwd(), () => runInitWithoutCliMetadata(options));
7696
7679
  //#endregion
7697
7680
  exports.createSelectedBucket = createSelectedBucket;
7698
- exports.getLegacySupabaseConfigReference = getLegacySupabaseConfigReference;
7699
7681
  exports.getSupabaseFunctionUrl = getSupabaseFunctionUrl;
7700
7682
  exports.getSupabaseProjectAccess = getSupabaseProjectAccess;
7701
7683
  exports.initProvider = initProvider;
@@ -125,7 +125,6 @@ interface SupabaseManagementApi {
125
125
  }
126
126
  //#endregion
127
127
  //#region iac/index.d.ts
128
- declare const getLegacySupabaseConfigReference: (configText: string) => "HOT_UPDATER_SUPABASE_ANON_KEY" | "supabaseAnonKey" | null;
129
128
  /** The Edge Function URL an app sets as its baseURL. */
130
129
  declare const getSupabaseFunctionUrl: ({ functionName, projectId }: {
131
130
  readonly functionName: string;
@@ -179,4 +178,4 @@ declare const getSupabaseProjectAccess: ({ accessToken, managementApi, project,
179
178
  declare const withSupabaseCliMetadataCleanup: <Result>(cwd: string, operation: () => Promise<Result>) => Promise<Result>;
180
179
  declare const runInit: (options: RunInitOptions) => Promise<void>;
181
180
  //#endregion
182
- export { SupabaseBucketSelection, SupabaseProjectSelection, createSelectedBucket, getLegacySupabaseConfigReference, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
181
+ export { SupabaseBucketSelection, SupabaseProjectSelection, createSelectedBucket, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
@@ -125,7 +125,6 @@ interface SupabaseManagementApi {
125
125
  }
126
126
  //#endregion
127
127
  //#region iac/index.d.ts
128
- declare const getLegacySupabaseConfigReference: (configText: string) => "HOT_UPDATER_SUPABASE_ANON_KEY" | "supabaseAnonKey" | null;
129
128
  /** The Edge Function URL an app sets as its baseURL. */
130
129
  declare const getSupabaseFunctionUrl: ({ functionName, projectId }: {
131
130
  readonly functionName: string;
@@ -179,4 +178,4 @@ declare const getSupabaseProjectAccess: ({ accessToken, managementApi, project,
179
178
  declare const withSupabaseCliMetadataCleanup: <Result>(cwd: string, operation: () => Promise<Result>) => Promise<Result>;
180
179
  declare const runInit: (options: RunInitOptions) => Promise<void>;
181
180
  //#endregion
182
- export { SupabaseBucketSelection, SupabaseProjectSelection, createSelectedBucket, getLegacySupabaseConfigReference, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
181
+ export { SupabaseBucketSelection, SupabaseProjectSelection, createSelectedBucket, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
@@ -17,9 +17,7 @@ import { appendFileSync, createReadStream, createWriteStream, readFileSync, stat
17
17
  import { finished } from "node:stream/promises";
18
18
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
19
19
  import { Buffer as Buffer$1 } from "node:buffer";
20
- import { apiKeys } from "@hot-updater/server/plugins/api-keys";
21
- import { insights } from "@hot-updater/server/plugins/insights";
22
- import { remoteConfig } from "@hot-updater/server/plugins/remote-config";
20
+ import { apiKeys, insights, remoteConfig } from "@hot-updater/server/plugins";
23
21
  import { SETTINGS_TABLE, createEngineDatabase, createSqlAdapter } from "@hot-updater/plugin-core";
24
22
  import { createClient } from "@supabase/supabase-js";
25
23
  //#region \0rolldown/runtime.js
@@ -6437,10 +6435,14 @@ const getConfigScaffold = (build) => {
6437
6435
  })`
6438
6436
  }).setPlugins({
6439
6437
  imports: [{
6440
- pkg: "@hot-updater/supabase",
6441
- named: ["plugins"]
6438
+ pkg: "hot-updater/plugins",
6439
+ named: [
6440
+ "apiKeys",
6441
+ "insights",
6442
+ "remoteConfig"
6443
+ ]
6442
6444
  }],
6443
- configString: "plugins"
6445
+ configString: "[apiKeys(), insights(), remoteConfig()]"
6444
6446
  }));
6445
6447
  };
6446
6448
  //#endregion
@@ -7070,24 +7072,6 @@ const SUPABASE_STORAGE_READINESS_MAX_ATTEMPTS = 300;
7070
7072
  const SUPABASE_STORAGE_READINESS_POLL_INTERVAL_MS = 1e3;
7071
7073
  const SUPABASE_SCHEMA_READINESS_MAX_ATTEMPTS = 60;
7072
7074
  const SUPABASE_SCHEMA_READINESS_POLL_INTERVAL_MS = 1e3;
7073
- const LEGACY_SUPABASE_CATALOG_CDN_URL_ENV_KEY = "HOT_UPDATER_SUPABASE_CATALOG_CDN_URL";
7074
- const getLegacySupabaseConfigReference = (configText) => {
7075
- if (configText.includes("HOT_UPDATER_SUPABASE_ANON_KEY")) return "HOT_UPDATER_SUPABASE_ANON_KEY";
7076
- if (/\bsupabaseAnonKey\s*:/.test(configText)) return "supabaseAnonKey";
7077
- return null;
7078
- };
7079
- const assertSkippedConfigDoesNotUseLegacySupabaseKey = async (configWriteResult) => {
7080
- if (configWriteResult.status !== "skipped") return;
7081
- const configText = await fs.readFile(configWriteResult.path, "utf-8").catch((error) => {
7082
- if (error.code === "ENOENT") return null;
7083
- throw error;
7084
- });
7085
- const legacyReference = configText === null ? null : getLegacySupabaseConfigReference(configText);
7086
- if (!legacyReference) return;
7087
- p.log.error(`Existing '${configWriteResult.path}' still references '${legacyReference}'.`);
7088
- p.log.message("Update it to use 'supabaseServiceRoleKey' with 'HOT_UPDATER_SUPABASE_SERVICE_ROLE_KEY', then run init again.");
7089
- process.exit(1);
7090
- };
7091
7075
  /** The Edge Function URL an app sets as its baseURL. */
7092
7076
  const getSupabaseFunctionUrl = ({ functionName, projectId }) => `https://${projectId}.supabase.co/functions/v1/${functionName}`;
7093
7077
  const reportSupabaseOriginCatalogReady = () => {
@@ -7629,7 +7613,7 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7629
7613
  });
7630
7614
  const persistDatabasePassword = persistCredentialInputs && dbPassword !== "";
7631
7615
  if (persistDatabasePassword) providerEnv[SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY] = project.id;
7632
- await makeEnv(providerEnv, ".env.hotupdater", { removeKeys: [LEGACY_SUPABASE_CATALOG_CDN_URL_ENV_KEY, ...persistDatabasePassword ? [] : [databasePasswordKey, SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY]] });
7616
+ await makeEnv(providerEnv, ".env.hotupdater", { removeKeys: persistDatabasePassword ? [] : [databasePasswordKey, SUPABASE_DATABASE_PASSWORD_PROJECT_ID_ENV_KEY] });
7633
7617
  const bucket = await createSelectedBucket(projectAccess.api, bucketSelection);
7634
7618
  await makeEnv({
7635
7619
  [initProvider.inputs.projectId.envKey]: project.id,
@@ -7670,11 +7654,10 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7670
7654
  await removeTmpDir();
7671
7655
  }
7672
7656
  p.log.success("Generated '.env.hotupdater' file with Supabase settings.");
7673
- const files = await writeHotUpdaterFiles(getConfigScaffold(build), {
7657
+ await writeHotUpdaterFiles(getConfigScaffold(build), {
7674
7658
  cwd: process.cwd(),
7675
7659
  settings: "Supabase"
7676
7660
  });
7677
- await assertSkippedConfigDoesNotUseLegacySupabaseKey(files.config);
7678
7661
  printAppSetup({
7679
7662
  baseURL: getSupabaseFunctionUrl({
7680
7663
  functionName,
@@ -7689,4 +7672,4 @@ const runInitWithoutCliMetadata = async ({ build, envFile }) => {
7689
7672
  };
7690
7673
  const runInit = (options) => withSupabaseCliMetadataCleanup(process.cwd(), () => runInitWithoutCliMetadata(options));
7691
7674
  //#endregion
7692
- export { createSelectedBucket, getLegacySupabaseConfigReference, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
7675
+ export { createSelectedBucket, getSupabaseFunctionUrl, getSupabaseProjectAccess, initProvider, reportSupabaseOriginCatalogReady, resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject, waitForSupabaseProjectReady, waitForSupabaseSchemaReady, withSupabaseCliMetadataCleanup };
@@ -1,8 +1,6 @@
1
1
  import { SETTINGS_TABLE, createEngineDatabase, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageUri, parseStorageUri } from "@hot-updater/plugin-core";
2
2
  import { createClient } from "@supabase/supabase-js";
3
- import { apiKeys } from "@hot-updater/server/plugins/api-keys";
4
- import { insights } from "@hot-updater/server/plugins/insights";
5
- import { remoteConfig } from "@hot-updater/server/plugins/remote-config";
3
+ import { apiKeys, insights, remoteConfig } from "@hot-updater/server/plugins";
6
4
  //#region src/supabaseConfig.ts
7
5
  const resolveSupabaseServiceRoleKey = (config) => {
8
6
  if (!config.supabaseServiceRoleKey) throw new Error("Supabase service role key is required. Set supabaseServiceRoleKey.");
@@ -1,8 +1,6 @@
1
1
  let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
2
2
  let _supabase_supabase_js = require("@supabase/supabase-js");
3
- let _hot_updater_server_plugins_api_keys = require("@hot-updater/server/plugins/api-keys");
4
- let _hot_updater_server_plugins_insights = require("@hot-updater/server/plugins/insights");
5
- let _hot_updater_server_plugins_remote_config = require("@hot-updater/server/plugins/remote-config");
3
+ let _hot_updater_server_plugins = require("@hot-updater/server/plugins");
6
4
  //#region src/supabaseConfig.ts
7
5
  const resolveSupabaseServiceRoleKey = (config) => {
8
6
  if (!config.supabaseServiceRoleKey) throw new Error("Supabase service role key is required. Set supabaseServiceRoleKey.");
@@ -237,9 +235,9 @@ const supabaseStorage = (config) => {
237
235
  * client route, and Remote Config. Its Edge Function imports this list.
238
236
  */
239
237
  const plugins = [
240
- (0, _hot_updater_server_plugins_insights.insights)(),
241
- (0, _hot_updater_server_plugins_api_keys.apiKeys)(),
242
- (0, _hot_updater_server_plugins_remote_config.remoteConfig)()
238
+ (0, _hot_updater_server_plugins.insights)(),
239
+ (0, _hot_updater_server_plugins.apiKeys)(),
240
+ (0, _hot_updater_server_plugins.remoteConfig)()
243
241
  ];
244
242
  //#endregion
245
243
  Object.defineProperty(exports, "SUPABASE_APPLY_FUNCTION", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/supabase",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.42",
4
+ "version": "1.0.0-rc.44",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -51,10 +51,10 @@
51
51
  "@supabase/supabase-js": "2.76.1",
52
52
  "hono": "4.12.34",
53
53
  "uuidv7": "^1.0.2",
54
- "@hot-updater/protocol": "1.0.0-rc.42",
55
- "@hot-updater/plugin-core": "1.0.0-rc.42",
56
- "@hot-updater/cli-tools": "1.0.0-rc.42",
57
- "@hot-updater/server": "1.0.0-rc.42"
54
+ "@hot-updater/protocol": "1.0.0-rc.44",
55
+ "@hot-updater/cli-tools": "1.0.0-rc.44",
56
+ "@hot-updater/plugin-core": "1.0.0-rc.44",
57
+ "@hot-updater/server": "1.0.0-rc.44"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@electric-sql/pglite": "0.4.1",
@@ -64,9 +64,9 @@
64
64
  "execa": "9.5.2",
65
65
  "@types/node": "^20",
66
66
  "mime": "^4.0.4",
67
- "@hot-updater/mock": "1.0.0-rc.42",
68
- "@hot-updater/test-utils": "1.0.0-rc.42",
69
- "@hot-updater/postgres": "1.0.0-rc.42"
67
+ "@hot-updater/mock": "1.0.0-rc.44",
68
+ "@hot-updater/test-utils": "1.0.0-rc.44",
69
+ "@hot-updater/postgres": "1.0.0-rc.44"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsdown",
@@ -27,13 +27,11 @@ const hotUpdater = createHotUpdater({
27
27
  supabaseServiceRoleKey,
28
28
  }),
29
29
  plugins,
30
- storage: [
31
- supabaseStorage({
32
- supabaseUrl,
33
- supabaseServiceRoleKey,
34
- bucketName,
35
- }),
36
- ],
30
+ storage: supabaseStorage({
31
+ supabaseUrl,
32
+ supabaseServiceRoleKey,
33
+ bucketName,
34
+ }),
37
35
  });
38
36
 
39
37
  const app = new Hono().basePath(functionBasePath);