Probably related to: Next.js 13.4 displays text instead of content due to improper handling of Vary header - Support - Netlify Support Forums and NextJS app and Netlify in production issue - Support - Netlify Support Forums
TL;DR, no solution yet apart from downgrading to lower versions of next.js.