Skip to main content
Run this command from the publication directory containing settings.json and pages/:
Open the preview URL printed in your terminal. The CLI starts on port 3000 by default. If that port is busy, it tries 8888, 4000, 5000, 6000, 7000, and 8000, in that order. If all are busy, it tries 3001, 3002, and onward. The CLI prints the port it selected. Changes to pages, imported React components, and settings.json reload automatically. Press Ctrl+C to stop the server. Use a different port and open the preview automatically:
To preview from another device on your local network, listen on all interfaces:
On the other device, open your computer’s local IP address on the selected port, such as http://192.168.1.10:3000. This makes the preview accessible to devices that can reach your computer.