I used to have this setup in next.config.ts:
import { composePlugins, withNx } from "@nx/next"
const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
]
export default composePlugins(...plugins)(nextConfig)
That works in 3.9.7, but no longer in 3.9.8. I dropped withNx to make this work. Not sure what withNx does.