Giter VIP home page Giter VIP logo

Comments (4)

transitive-bullshit avatar transitive-bullshit commented on August 27, 2024

Have you tried rootNotionSpaceId?

from nextjs-notion-starter-kit.

drewatdrawn avatar drewatdrawn commented on August 27, 2024

I have, I had the same overfetching and rate limiting issues.

from nextjs-notion-starter-kit.

drewatdrawn avatar drewatdrawn commented on August 27, 2024

I tried experimenting with different workspace / teamspace configurations in Notion to get more information on the overfetching issue. If I create a new workspace and duplicate my content into that workspace, there are no problems (this makes sense, there are no other teamspaces to overfetch into). This would be fine but Notion's paid plan doesn't span workspaces, so I am limited to 1000 blocks if I add collaborators to the new workspace.

If I create a new teamspace in my current workspace and it contains only the root Notion page I want (and its children), I still have the overfetching issue. I can see from the pages queried in the console log in my terminal that pages outside of the teamspace are being referenced.

This happens whether or not I enable the rootNotionSpaceId in the site.config.ts file. I did notice that the rootNotionSpaceId is the same regardless of which teamspace my rootNotionPageId is in, but does change if I switch workspaces. The rootNotionSpaceId seems tied to the workspace, not the teamspace.

from nextjs-notion-starter-kit.

drewatdrawn avatar drewatdrawn commented on August 27, 2024

@transitive-bullshit any other ideas on how to limit fetching here? Is that how the rootNotionSpaceId is intended to work? Any insight greatly appreciated! This starter kit is fantastic - hoping I can work out the fetching issue. The rate limiting timeout is a bummer.

from nextjs-notion-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.