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
Hybrid Index Amp pages always shows the amp version in production. #14096
Comments
is there any solution? I have similar problem but with dynamic pages generated on build. On runtime it works fine. |
@tomaszrondio i'm not sure if this PR #17461 fixes the problem or not, try it out. |
if I did it correctly it does not. I added changes directly to |
No just upgrade Next to this release: https://github.com/vercel/next.js/releases/tag/v9.5.6-canary.1 |
nope. I does not help. I opened new issue yesterday about it. #18128 |
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
When creating a hybrid Index Page, with a getStaticProps function, the index page in production will always show the amp page in
domain.com
and not indomain.com/index.amp
This works as expected in dev mode, where the non amp page will show in
localhost
and amp page inlocalhost?amp=1
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
For the index page to show the non amp page first, and show the amp page, when going to
domain.com/index.amp
Links
This is the repo and the production url for the problem
This is the commit without the getStaticProps(where it works as expected):
System information
Additional context
This behavior doesn't occur in dynamic pages, where i would have getStaticPaths too, i didn't test it though.
The text was updated successfully, but these errors were encountered: