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

Different params received in unstable_getStaticProps in development and production (ZEIT) #10598

Closed
stefanoverna opened this issue Feb 19, 2020 · 1 comment · Fixed by #10663
Assignees
Milestone

Comments

@stefanoverna
Copy link

Bug report

Describe the bug

Having a page at /docs/p/[...chunks]/index.js, and visiting ie. /docs/p/foo/bar:

  1. in dev the unstable_getStaticProps function receives { params: ['foo', 'bar'] }
  2. in production (on ZEIT) it receives { params: [ 'foo/bar' ] }

Expected behavior

I guess { params: ['foo', 'bar'] } is the correct one.

Screenshots

Runtime error on ZEIT:

Schermata 2020-02-19 alle 17 15 27

System information

Version of Next.js: 9.2.1

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants