Skip to content

Commit

Permalink
Update readme with alternative hostname option (#4829)
Browse files Browse the repository at this point in the history
Tackles the issue in #4025.
  • Loading branch information
Stefan Ivic authored and timneutkens committed Jul 26, 2018
1 parent 8e2c199 commit fc05c9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Next.js is a minimalistic framework for server-rendered React applications.
- [Customizing webpack config](#customizing-webpack-config)
- [Customizing babel config](#customizing-babel-config)
- [Exposing configuration to the server / client side](#exposing-configuration-to-the-server--client-side)
- [Starting the server on alternative hostname](#starting-the-server-on-alternative-hostname)
- [CDN support with Asset Prefix](#cdn-support-with-asset-prefix)
- [Production deployment](#production-deployment)
- [Static HTML export](#static-html-export)
Expand Down Expand Up @@ -1388,6 +1389,10 @@ export default () => <div>
</div>
```

### Starting the server on alternative hostname

To start the development server using a different default hostname you can use `--hostname hostname_here` or `-H hostname_here` option with next dev. This will start a TCP server listening for connections on the provided host.

### CDN support with Asset Prefix

To set up a CDN, you can set up the `assetPrefix` setting and configure your CDN's origin to resolve to the domain that Next.js is hosted on.
Expand Down

0 comments on commit fc05c9c

Please sign in to comment.