mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update readme with alternative hostname option (#4829)
Tackles the issue in #4025.
This commit is contained in:
parent
8e2c199ea7
commit
fc05c9c273
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue