From 4748641c2203e38b65e29a81a7c7e7eea257aa20 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 21 Jun 2023 15:39:03 +0530 Subject: [PATCH] fix: Hotfix/main - 404 workflows (#9678) --- apps/web/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index b52fdb21db..0406a6a8e0 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -188,7 +188,7 @@ const nextConfig = { // It would also not match /free/30min/embed because we are ensuring just two slashes // ?!book ensures it doesn't match /free/book page which doesn't have a corresponding new-booker page. // [^/]+ makes the RegExp match the full path, it seems like a partial match doesn't work. - const userTypeRouteRegExp = `/:user((?!${pages.join("/|")}$)[^/]*)/:type((?!book)[^/]+)`; + const userTypeRouteRegExp = `/:user((?!${pages.join("/|")})[^/]*)/:type((?!book)[^/]+)`; const teamTypeRouteRegExp = "/team/:slug/:type((?!book)[^/]+)"; const privateLinkRouteRegExp = "/d/:link/:slug((?!book)[^/]+)"; let rewrites = [