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

Failing to generate static pages with InstantSearchNext provider on demand #6555

Open
1 task done
AmeerSapadmi opened this issue Feb 6, 2025 · 1 comment
Open
1 task done
Labels
triage Issues to be categorized by the team

Comments

@AmeerSapadmi
Copy link

🐛 Current behavior

Running a full build works as expected, but attempting to render a page on demand in NextJS results in a 500 error with the following message:

[Error]: Dynamic server usage: Route / couldn't be rendered statically because it used headers. See more info here: https://nextjs.org/docs/messages/dynamic-server-error

🔍 Steps to reproduce

  1. Go to /1
  2. Observe the 500 error message

Live reproduction

https://codesandbox.io/p/live/80d100a6-baf4-467b-bf90-508f0f461622

💭 Expected behavior

On demand page generation in NextJS works without throwing any errors

Package version

next 15.0.4, react-instantsearch-nextjs 0.4.4, algoliasearch 5.17.1, react-instantsearch 7.13.8

Operating system

No response

Browser

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@AmeerSapadmi AmeerSapadmi added the triage Issues to be categorized by the team label Feb 6, 2025
@a-mitic-vegait
Copy link

As well as with this issue #6552 I am experiencing the same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues to be categorized by the team
Projects
None yet
Development

No branches or pull requests

2 participants