Skip to content

getStaticPaths returns a fraction of the items #850

Open
@Vacilando

Description

@Vacilando

Package

next-drupal (NPM package)

Ask the question

Trying to generate all pages in [...slug].tsx statically, implemeted getStaticPaths like this:

export async function getStaticPaths(context): Promise<GetStaticPathsResult> {
  return {
    paths: await drupal.getStaticPathsFromContext("node--value", context),
    fallback: false,
  };
}

The problem is that this fetches 1000 path items, but Drupal contains over 3000 of these kind of nodes.

How can we possibly fetch all of the items here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion asked by a usertriageA new issue that needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions