next dev, on your phone
Scan. Open. Develop.
Shows a QR code in your terminal when the Next.js dev server starts. Scan it to open your app on your phone. Works with webpack and Turbopack.
npm i -D next-plugin-qrcodeRead the docszero config
Wrap your config with withQRCode and start the dev server. Nothing else to set up.
webpack & turbopack
Runs at config evaluation time. No bundler integration, so it works with both.
your local network
The QR code encodes your machine's LAN address, so your phone opens the same dev server.