From 7342d52c68955119ebd76a30f3ddce783749bb0a Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 23 Jun 2024 21:59:50 -0700 Subject: [PATCH] Fixed team settings not found. --- next.config.js | 6 +----- .../teams/[teamId]/settings/websites/[websiteId]/page.tsx | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/app/(main)/teams/[teamId]/settings/websites/[websiteId]/page.tsx diff --git a/next.config.js b/next.config.js index d7546d75..acb83a92 100644 --- a/next.config.js +++ b/next.config.js @@ -168,11 +168,7 @@ const config = { destination: '/api/scripts/telemetry', }, { - source: '/teams/:teamId/settings/:path*', - destination: '/teams/:teamId/settings/:path*', - }, - { - source: '/teams/:teamId/:path*', + source: '/teams/:teamId/:path((?!settings).*)*', destination: '/:path*', }, ]; diff --git a/src/app/(main)/teams/[teamId]/settings/websites/[websiteId]/page.tsx b/src/app/(main)/teams/[teamId]/settings/websites/[websiteId]/page.tsx new file mode 100644 index 00000000..a6895296 --- /dev/null +++ b/src/app/(main)/teams/[teamId]/settings/websites/[websiteId]/page.tsx @@ -0,0 +1,5 @@ +import Page from 'app/(main)/settings/websites/[websiteId]/page'; + +export default function ({ params }) { + return ; +}