Skip to content

Contentful JS library doesn't work in nextjs edge runtime #2051

@RProduction

Description

Expected Behavior

It should return entry object

Actual Behavior

Console log shows
[Error: Adapter 'http' is not available in the build]

Possible Solution

Provide fetch API from contentful library

Steps to Reproduce

  1. Initialize contentful client
  2. set nextjs runtime to edge
  3. execute get query

Context

Environment

  • Language Version: 20.9.0
  • Package Manager Version: 10.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions