Skip to content

Alternative to notion-client format? #160

Open
@dev-on2air

Description

@dev-on2air

Great library. Loving it so far.

My use case: Wanting to render page server side inside of Cloudflare Workers. Rendering is working (thanks to use of flareact.com)

Only piece not working is the notion-client. I can't use that library within Cloudflare Workers due to dependance of 'got' library which doesnt run in Cloudflare.

I noticed you had the fetch() implemented originally but is commented out. I'm wondering if I fork notion-client and use fetch (which does work in CF) instead of got if that would work for me?

Or, I can use the Notion API Worker from SplitBee, but it doesn't look like their format is supported by react-notion-x. Is that correct? Is there a way to convert their recordMap format to what is needed for rendering with x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions