NotionX / NotionX/react-notion-x

Can split previewImages and nextImage into two separate functions?

Open
#482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

Due to images on the domain notion.so cannot be accessed in some regions, I'm seeking a way to add an integrated image proxy for my site to bypass the restrictions.

The images in NotionRenderer component will not be replaced by Next Image unless the previewImages fuction got implemented as well.

As I just want to add the image proxy, is it there any way to use the standalone nextImage to control the image wrapper in NotionRenderer?

Notion Test Page ID

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the NotionRenderer component and the previewImages and nextImage implementations; read how image rendering is wired together. Done means the image proxy use case can control the NotionRenderer image wrapper independently from the standalone nextImage behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.