Skip to content

Commit 2904d8f

Browse files
authored
Merge pull request #5064 from brave-intl/add-more-checks-for-routing
add additional checks for root path
2 parents 560414c + a379d24 commit 2904d8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nextjs/scripts/create-local-server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ app
100100

101101
// express will overmatch on the root path, so handle that outside the other matchers
102102
expressApp.get('*', (req, res, next) => {
103-
console.log(req)
104-
if (req.path === '' || req.path === '/' || req.path === '/en' || req.path === '/jp') {
103+
if ([null, '//', '', '/', '/en', '/jp'].includes(req.path)) {
105104
return handle(req, res);
106105
} else {
107106
next();

0 commit comments

Comments
 (0)