Software & Apps

Supabase CLI and Edge Function and Postgres AI updates

Supabase CLI v3.4.0 introduces a new config.jsonc format for improved editor validation. Recent performance testing shows HNSW index speeds drop from 2,110 to 13 queries per second when vector volume increases from 2 million to 5 million.

Supabase CLI and Edge Function and Postgres AI updates

Configuration and CLI changes

The Supabase CLI v3.4.0, released 2026-11-24, changes how the supabase init command creates project settings. Instead of supabase/config.toml, new projects use supabase/config.jsonc. This JSON format includes a $schema line so that editors with JSON Schema support provide autocomplete and validation. Existing projects keep their config.toml files, and the CLI does not convert them unless a user asks it to. You can move a project between formats using the supabase config convert command. The version 3.3.0 release added a --to toml flag to that conversion command. The 3.2.0 update also introduced supabase config validate to catch mistakes before deployment. Users must check any third-party tools or CI scripts that read config.toml directly, because they might fail if the file is missing. The JSON file takes precedence over TOML. The CLI v3.0.0 release, which arrived 2026-11-02, changed command behavior because all database commands like db push and db pull now target the local stack by default instead of your remote hosted project database. This version also replaces the separate supabase-go executable with a single supabase binary. Because the CLI asks for confirmation before making changes to a hosted project, developers must include the --yes flag in CI environments to prevent command failures.

Edge Function capabilities

Edge Functions execute TypeScript code in a Deno environment across 29 geographic regions to ensure low latency. The March 2026 update added an Edge Functions dashboard for CLI and self-hosted users. This dashboard lets you list, search, and test functions. Users can also download functions as a .zip file. These functions work well for webhook receivers from services like Stripe or GitHub, or for small AI inference tasks. They also work for scheduled jobs using pg_cron or for sending SMS via the Twilio Messaging API. Functions can call Supabase APIs like Auth, Postgres, and Storage. Developers use the supabase functions serve command to run functions locally for faster iteration.

Feature Limit
RAM 256 MB
CPU Time 2 seconds
Bundle Size 20 MB

The runtime has specific limits. Cold starts take approximately 50ms. Developers cannot use Node-only npm packages or read request cookies from a Next.js application. If logic requires the full Node ecosystem, developers must use a different approach.

Postgres AI and vector performance

The pgvector extension allows Postgres to handle AI workloads through vector similarity searches. Users can choose between HNSW and IVFFlat index types. HNSW uses a multi-layer graph and provides better speed and recall. IVFFlat requires you to populate the table before training centroids. While HNSW is faster, its index must fit within the shared_buffers memory to maintain performance. Users can use operators like cosine distance with <=>, L2 with <->, and negative inner product with <#> for these tasks.

Performance drops significantly if the index exceeds memory. For example, on a machine with 16 GB shared_buffers, the HNSW index handled 2,110 queries per second at 2 million vectors. When the volume reached 5 million vectors, the performance dropped to 13 queries per second. This decrease in speed happens because the system cannot keep the graph in memory. Because vector search runs as a standard SQL query, Row Level Security applies to the results automatically. This pattern works with extensions like pgmq for queuing and pg_net for asynchronous HTTP calls. This prevents users from seeing unauthorized embeddings. Can you manage these memory requirements as your dataset grows into the millions?