From 0d77dda28c8b0eaed38bb203de737ffc1235d42a Mon Sep 17 00:00:00 2001 From: Anderson Leite Date: Wed, 14 Nov 2018 00:55:25 -0800 Subject: [PATCH] Fix typos on next-server.js comments. (#5672) --- packages/next-server/server/next-server.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/next-server/server/next-server.js b/packages/next-server/server/next-server.js index 6eefb5f9..6d9c8b40 100644 --- a/packages/next-server/server/next-server.js +++ b/packages/next-server/server/next-server.js @@ -120,9 +120,9 @@ export default class Server { } }, { - // It's very important keep this route's param optional. - // (but it should support as many as params, seperated by '/') - // Othewise this will lead to a pretty simple DOS attack. + // It's very important to keep this route's param optional. + // (but it should support as many params as needed, separated by '/') + // Otherwise this will lead to a pretty simple DOS attack. // See more: https://github.com/zeit/next.js/issues/2617 match: route('/static/:path*'), fn: async (req, res, params) => { @@ -133,9 +133,9 @@ export default class Server { ] if (this.nextConfig.useFileSystemPublicRoutes) { - // It's very important keep this route's param optional. - // (but it should support as many as params, seperated by '/') - // Othewise this will lead to a pretty simple DOS attack. + // It's very important to keep this route's param optional. + // (but it should support as many params as needed, separated by '/') + // Otherwise this will lead to a pretty simple DOS attack. // See more: https://github.com/zeit/next.js/issues/2617 routes.push({ match: route('/:path*'),