diff --git a/readme.md b/readme.md index 4b6e27c1..c48719b0 100644 --- a/readme.md +++ b/readme.md @@ -429,6 +429,8 @@ const handle = app.getRequestHandler() app.prepare().then(() => { createServer((req, res) => { + // Be sure to pass `true` as the second argument to `url.parse`. + // This tells it to parse the query portion of the URL. const parsedUrl = parse(req.url, true) const { pathname, query } = parsedUrl