Skip to content

Documentation for BlobsServer import is incorrect #225

Open
@micmath

Description

@micmath

Referring to: https://github.com/netlify/blobs?tab=readme-ov-file#server-api-reference

The documentation for BlobsServer shows this as the recommended way to import the BlobsServer API:

// tested and failed in v8.1.2
import { BlobsServer } from '@netlify/blobs'

In fact @netlify/blobs does not export BlobsServer so that cannot work.

The way to do this that works is:

// tested and working in v8.1.2
import { BlobsServer } from '@netlify/blobs/server'

This should either be fixed in the documentation or the exports should be fixed to match the documented API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions