Commit 17773a62 authored by Jack Tomaszewski's avatar Jack Tomaszewski Committed by Tim Neutkens

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
parent 2c28e122
......@@ -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).
......
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