Using Next.js with PNPM Create App #apt or yum install libvips pnpm init next-app <project-name> cd <project-name> rm -rf node_modules package-lock.json pnpm i pnpm dev Build SPA add command: { "scripts": { "spa": "next build && next export" } } run command pnpm spa use ./out by ran or serve ran -r ./out