Commit fc05c9c2 authored by Stefan Ivic's avatar Stefan Ivic Committed by Tim Neutkens

Update readme with alternative hostname option (#4829)

Tackles the issue in #4025.
parent 8e2c199e
......@@ -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)
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment