Correct info about export limitations (#7729)
* Correct info about export limitations In `next export` `req` and `res` objects are present, but they are empty ( https://github.com/zeit/next.js/blob/master/packages/next/export/worker.js#L42-L43 ). * Update README.md
This commit is contained in:
parent
2c28e12220
commit
17773a6203
1 changed files with 1 additions and 1 deletions
|
@ -2493,7 +2493,7 @@ now
|
|||
|
||||
With `next export`, we build a HTML version of your app. At export time we will run `getInitialProps` of your pages.
|
||||
|
||||
The `req` and `res` fields of the `context` object passed to `getInitialProps` are not available as there is no server running.
|
||||
The `req` and `res` fields of the `context` object passed to `getInitialProps` are empty objects during export as there is no server running.
|
||||
|
||||
> **Note**: If your pages don't have `getInitialProps` you may not need `next export` at all, `next build` is already enough thanks to [automatic prerendering](#automatic-prerendering).
|
||||
|
||||
|
|
Loading…
Reference in a new issue