-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: 🐛 include terser bundle into netlify functions #1295
Conversation
Resolves issues where AMP would work locally, but not on a deployed site
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
The failing unit tests look to be due to #1289 needing to be merged first (newer nextjs version having moved the type that's imported within the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, but let's get #1289 merged before it so the tests work properly
Oh, like you said! |
… nextjs-route-announcer element
Resolves issues where AMP would work locally, but not on a deployed site.
Summary
Someone had reported an issue where they were able to see that pages configured for AMP were working in their local environments, but not when they were deployed to Netlify.
In testing, it appeared that the
terser
package was needed but was being omitted from the netlify function.zip
file generated at theonBuild
step.Removing the line that omitted the terser bundle resolves the issue.
Test plan
The test deploy site has the home page configured as a hybrid AMP page. This means that you can test both the non-AMP and AMP views.
AMP URL: https://624b075121937b095892dd5c--amp-nextjs-investigation-with-ci.netlify.app?amp=1
Non-AMP URL: https://624b075121937b095892dd5c--amp-nextjs-investigation-with-ci.netlify.app/
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Google AMP Test Results for deploy site: https://search.google.com/test/amp/result?id=4llAXD5fMCWJiKavPHv_mg
Standard checks: