lwr dev
The lwr dev command starts a local development server that recompiles the source when it observes changes to local files. You can append {options} to this on the command line to configure settings like port number and server mode for your local server.
| Option | Type | Required/Optional | Description |
|---|---|---|---|
-p, --port <port> | Number | Optional | Set the port for the local development server. If a port isn't specified, the default value is 3000. |
-m, --mode <mode> | String | Optional | Set the server mode. If a server mode isn't specified, the default value is dev. Accepted values are dev, compat, prod-compat, and prod. |
-o, --open | Boolean | Optional | Open the static site in the browser on startup. By default, the browser doesn't open on startup. |
-h, --help | Optional | View help text for lwr dev options in the CLI. |