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
getStaticProps incompatible with hybrid AMP dynamic routes #17935
Comments
Can you check |
Confirm, it's working 🚀 |
Will close this issue then as it's already on canary 👍 Thanks for confirming! |
@timneutkens It's happening again since I updated to latest canary. |
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. |
Bug report
Describe the bug
getStaticProps
receive different params when using AMPhybrid
and dynamic routes.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
1 - Create an hybrid AMP page with dynamic route (for example
pages/[...fragments].js
)2 - add
getStaticPaths
and return data ({params: { fragments: ['foo', 'bar'] }}
)2 - Run
npm run dev
3 - add
getStaticProps
and console.log(params)4 - you will get for one page
fragments: ['foo', 'bar']
and then{ amp: '1' }
Expected behavior
getStaticProps
should receive all dynamic params and in additionamp
Code Sample
System information
9.5.5
Additional context
Somewhat really similar to:
The text was updated successfully, but these errors were encountered: