You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/index.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,14 @@ export default class Server {
34
34
35
35
getRequestHandler(){
36
36
return(req,res,parsedUrl)=>{
37
-
if(!parsedUrl||parsedUrl.query===null){
37
+
if(!parsedUrl){
38
38
parsedUrl=parse(req.url,true)
39
39
}
40
40
41
+
if(!parsedUrl.query){
42
+
thrownewError('Please provide a parsed url to `handle` as third parameter. See https://github.com/zeit/next.js#custom-server-and-routing for an example.')
0 commit comments