-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Links from non-AMP pages to AMP pages causes broken pages #11521
Comments
Hi, it looks like the provided repo to reproduce is 404ing. I don't seem to be able to reproduce this locally on a minimal Next.js app using the latest version of Next.js |
I'm sorry, I hadn't made it public. |
Hi, thanks for providing the reproduction. It looks like this is due to not exporting the config in the same line e.g. |
Oh, interesting, nice find. |
@ijjk, I guess this might be out of scope since it's an experimental feature, but when setting |
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 going from a regular page with
amp: false
to a page that hasamp: true
set, it won't render the AMP page correctly. E.g. all<amp-img>
tags won't be visible and other AMP components won't work either.Worth noting is that this doesn't happen during development.
To Reproduce
Clone https://github.com/kevva/next-link-amp and do the following:
npm run build
npm run start
The text was updated successfully, but these errors were encountered: