Settings refactor.

This commit is contained in:
Mike Cao 2025-07-11 22:55:30 -07:00
parent 1b81074752
commit c98f324c22
56 changed files with 706 additions and 348 deletions

View file

@ -125,7 +125,7 @@ if (collectApiEndpoint) {
const redirects = [
{
source: '/settings',
destination: '/settings/profile',
destination: '/settings/preferences',
permanent: true,
},
{
@ -133,11 +133,6 @@ const redirects = [
destination: '/teams/:id/websites',
permanent: true,
},
{
source: '/teams/:id/settings',
destination: '/teams/:id/settings/team',
permanent: true,
},
{
source: '/admin',
destination: '/admin/users',
@ -173,12 +168,6 @@ if (cloudMode && cloudUrl) {
permanent: false,
});
redirects.push({
source: '/teams/:id/settings/:path*',
destination: `${cloudUrl}/teams/:id/settings/:path*`,
permanent: false,
});
if (disableLogin) {
redirects.push({
source: '/login',