feat(routing): add redirect route for auth success page (#547)

This commit is contained in:
Hezi-crypto 2025-08-06 15:39:46 +08:00 committed by GitHub
parent 8d1cc2e03a
commit fa0daada8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -111,6 +111,7 @@ const AgentPublishPage = lazy(() =>
);
const DocsRedirect = lazy(() => import('./pages/docs'));
const Redirect = lazy(() => import('./pages/redirect'));
export const router: ReturnType<typeof createBrowserRouter> =
createBrowserRouter([
@ -130,6 +131,14 @@ export const router: ReturnType<typeof createBrowserRouter> =
requireAuth: false,
}),
},
{
path: '/information/auth/success',
Component: Redirect,
loader: () => ({
hasSider: false,
requireAuth: false,
}),
},
{
path: '/',
Component: Layout,