Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Remove 0 Bind Address #1865

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/en/docs/3.features/6.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ export default {

By default, the Nuxt development server host is `localhost`  which is only accessible from within the host machine. In order to view your app on another device you need to modify the host. You can modify the host in your nuxt.config.js file.

Host `'0.0.0.0'`  is designated to tell Nuxt to resolve a host address, which is accessible to connections *outside* of the host machine (e.g. LAN). If the host is assigned the string value of `'0'` (not 0, which is falsy), or `'0.0.0.0'` your local IP address will be assigned to your Nuxt application.
Host `'0.0.0.0'`  is designated to tell Nuxt to resolve a host address, which is accessible to connections *outside* of the host machine (e.g. LAN). If the host is assigned the string value of `'0.0.0.0'` your local IP address will be assigned to your Nuxt application.

```js [nuxt.config.js]
export default {
server: {
host: '0' // default: localhost
host: '0.0.0.0' // default: localhost
}
}
```
Expand Down