Server-side PDF generation example using Next.js Medium Article - PDF generation with React Componenets using Next.js at Server Side Getting Start npm install npm run dev To see HTML version: http://localhost:3000/ To see PDF version: http://localhost:3000/?exportPDF=true