Skip to content

Check it mdx-components.js exists, no-op providerImportSource if not #64

@brkalow

Description

@brkalow

If mdx-components.js does not exist, we fallback to @mdx-js/react. This causes problems for server components as it uses a React context internally.

We should no-op providerImportSource if mdx-components.js is not able to be resolved.

Reference: https://github.com/hashicorp/next-mdx-remote/blob/main/src/serialize.ts#L33-L34

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions