MissingBlobsEnvironmentError in Functions 2.0 with auto-injection

Site: fluffy-moonbeam-751975.netlify.app
Function: leaderboard
Repo: Repo is private — happy to share specific files on request

I’m using Netlify Functions 2.0 syntax (export default async (req, context) =>)
which should auto-inject the Blobs environment. The function worked initially
on first deploy, then started failing with MissingBlobsEnvironmentError on
subsequent deploys with no changes to the function code itself.

Function code is straightforward:
import { getStore } from “@netlify/blobs”;
export default async (req, context) => {
const store = getStore(“leaderboards”);

};

Tried already:

  • Removing @netlify/blobs from package.json deps (still fails)
  • Marking it as external_node_modules in netlify.toml (still fails)
  • connectLambda(req) — fails with Buffer.from(undefined) because we’re on v2

Sample error stack:
{{paste the most recent MissingBlobsEnvironmentError stack from your logs}}

Why is auto-injection failing on Functions 2.0 syntax?

We are seeing a similar issue on our application - which appears to surface on Saturday 30th May 2026.

[MissingBlobsEnvironmentError]: The environment has not been configured to use Netlify Blobs. To use it manually, supply the following properties when creating a store: deployID at getDeployStore (.netlify/dist/run/storage/regional-blob-store.cjs:780:11) at getRegionalBlobStore (.netlify/dist/run/storage/regional-blob-store.cjs:833:10) at getMemoizedKeyValueStoreBackedByRegionalBlobStore (.netlify/dist/run/storage/storage.cjs:48:69) at new NetlifyCacheHandler (.netlify/dist/run/handlers/cache.cjs:55:92)