Shows QR code of server url.
npm install --save-dev server-qr-code
npx server-qr-code
"scripts": {
+ "predev": "server-qr-code",
"dev": "next dev",
"build": "next build",
+ "prestart": "server-qr-code",
"start": "next start",
"lint": "next lint"
},
If you're using Vite, you should use vite-plugin-qrcode.
Options are the same as next dev
and next start
.
Options
--port, -p A port number (default: 3000)
--hostname, -H Hostname
--help Displays this message