Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal returning 2000 paths per request maximum #19

Closed
ysvahn opened this issue Sep 20, 2021 · 4 comments
Closed

Drupal returning 2000 paths per request maximum #19

ysvahn opened this issue Sep 20, 2021 · 4 comments

Comments

@ysvahn
Copy link

ysvahn commented Sep 20, 2021

Hi, I found something quite odd when building an app with more than 2000 paths.

I have 6000 (3000 x 2 languages) nodes of one type (artwork) in my Drupal database but when I'm building the app, only 2000 are actually built when building the pages under /artworks/[...slug].js.

Is this a limitation from next-drupal, the next Drupal module or even the subrequests module ? I know that the basic Drupal/JSONAPI is limited to 50 nodes per request but I believe subrequests go through.

If we can't bypass this limitation, are we able to use limits to queue requests as long as we do not have all nodes ?

@shadcn
Copy link
Collaborator

shadcn commented Sep 20, 2021

You're probably hitting the 1000 max size that the Next.js module sets.

See

Can you try overriding this parameter in your sites services.yml file?

@ysvahn
Copy link
Author

ysvahn commented Sep 21, 2021

It seems to be working but I am hitting the 60 seconds timeout when retrieving the nodes now, so the build does not even start, do you know where I can change the timeout value ?

@ysvahn
Copy link
Author

ysvahn commented Sep 21, 2021

OK, there is an experimental flag to add in next.config.js :
experimental.pageDataCollectionTimeout is 60 by default, problem solved !

I will have to create a patch on the .yml file to make sure that the value never changes :)

@ysvahn ysvahn closed this as completed Sep 21, 2021
@shadcn
Copy link
Collaborator

shadcn commented Sep 21, 2021

I will have to create a patch on the .yml file to make sure that the value never changes :)

Do you mean the next_jsonapi.size_max value?

You could also look into ISR and only build the most important pages and let the other pages be server rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants