From 8a6c57de006e2af58d52bb8646b9b4a433f7f797 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Sat, 25 Feb 2017 13:35:10 -0500 Subject: [PATCH] Add better documentation around url.parse (#1281) --- readme.md | 2 ++ 1 file changed, 2 insertions(+) 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