NitroPack does not optimize pages built with the Accelerated Mobile Pages (AMP) framework.
Since the framework exists specifically for creating fast websites, AMP pages are optimized for speed by default. That’s why optimizing them a second time with NitroPack isn’t necessary.
For more information on why AMP pages are fast by default, check out this article on how AMP works.