Skip to content

Commit

Permalink
Fix the wrong order of req, res in the doc. (#7174)
Browse files Browse the repository at this point in the history
* Update using-nextjs.md

* cp using-next.md to v36
  • Loading branch information
pyankoff committed Feb 26, 2020
1 parent 8cae128 commit 6ac03f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/pages/versions/unversioned/guides/using-nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,10 @@ You may want to intercept server requests, this will allow for that:

```js
const { createServerAsync } = require('@expo/next-adapter');
const { parse } = require('url');

createServerAsync(projectRoot, {
handleRequest(res, req) {
handleRequest(req, res) {
const parsedUrl = parse(req.url, true);
const { pathname } = parsedUrl;

Expand Down
3 changes: 2 additions & 1 deletion docs/pages/versions/v36.0.0/guides/using-nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,10 @@ You may want to intercept server requests, this will allow for that:

```js
const { createServerAsync } = require('@expo/next-adapter');
const { parse } = require('url');

createServerAsync(projectRoot, {
handleRequest(res, req) {
handleRequest(req, res) {
const parsedUrl = parse(req.url, true);
const { pathname } = parsedUrl;

Expand Down

0 comments on commit 6ac03f2

Please sign in to comment.