From 0eb5bab4522808916dfe9414aaf14b7af4e09a8c Mon Sep 17 00:00:00 2001 From: Wagner Camarao Date: Wed, 14 Mar 2018 05:06:53 -0300 Subject: [PATCH] Fix a/b typo in custom-server-typescript routing (#4003) --- examples/custom-server-typescript/pages/index.tsx | 4 ++-- examples/custom-server-typescript/server/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/custom-server-typescript/pages/index.tsx b/examples/custom-server-typescript/pages/index.tsx index d044fc1e..0e22b819 100644 --- a/examples/custom-server-typescript/pages/index.tsx +++ b/examples/custom-server-typescript/pages/index.tsx @@ -3,7 +3,7 @@ import Link from 'next/link' export default () => ( ) diff --git a/examples/custom-server-typescript/server/index.ts b/examples/custom-server-typescript/server/index.ts index fd8c573d..97b6e24d 100644 --- a/examples/custom-server-typescript/server/index.ts +++ b/examples/custom-server-typescript/server/index.ts @@ -14,9 +14,9 @@ app.prepare() const { pathname, query } = parsedUrl if (pathname === '/a') { - app.render(req, res, '/b', query) - } else if (pathname === '/b') { app.render(req, res, '/a', query) + } else if (pathname === '/b') { + app.render(req, res, '/b', query) } else { handle(req, res, parsedUrl) }