Add changing the hostname to the cli doc (#25971)
## Documentation / Examples - [x] Make sure the linting passes
This commit is contained in:
parent
436e74bb04
commit
d72225eef0
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ The application will start at `http://localhost:3000` by default. The default po
|
||||||
npx next dev -p 4000
|
npx next dev -p 4000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Similarly, you can also set the hostname to be different from the default of `0.0.0.0`, this can be useful for making the application available for other devices on the network. The default hostname can be changed with `-H`, like so:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx next dev -H 192.168.1.2
|
||||||
|
```
|
||||||
|
|
||||||
## Production
|
## Production
|
||||||
|
|
||||||
`next start` starts the application in production mode. The application should be compiled with [`next build`](#build) first.
|
`next start` starts the application in production mode. The application should be compiled with [`next build`](#build) first.
|
||||||
|
|
Loading…
Reference in a new issue