website refactor
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import { routes } from '@/lib/routing/RouteConfig';
|
||||
import { FeatureFlagService } from '@/lib/feature/FeatureFlagService';
|
||||
|
||||
// API Clients
|
||||
@@ -44,7 +45,7 @@ export async function getHomeData(): Promise<HomeDataDTO> {
|
||||
// Check session and redirect if logged in
|
||||
const session = await sessionService.getSession();
|
||||
if (session) {
|
||||
redirect('/dashboard');
|
||||
redirect(routes.protected.dashboard);
|
||||
}
|
||||
|
||||
// Get feature flags
|
||||
|
||||
Reference in New Issue
Block a user