diff --git a/next.config.ts b/next.config.ts
index c781a8ac..b2d25eb6 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -3,6 +3,7 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
output: 'export',
images: { unoptimized: true },
+ trailingSlash: true,
};
export default nextConfig;
diff --git a/src/app/marketing/page.tsx b/src/app/marketing/page.tsx
index 99a80b64..c30ee501 100644
--- a/src/app/marketing/page.tsx
+++ b/src/app/marketing/page.tsx
@@ -7,4 +7,5 @@ const Marketing = () => {
);
};
+
export default Marketing;
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 2f22f5aa..9cc0177d 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,18 +1,29 @@
'use client';
import { useEffect } from 'react';
-import { useRouter } from 'next/navigation';
+import { usePathname, useRouter } from 'next/navigation';
+import { useAuth } from '@/services/hooks/useAuth';
+import { redirectToSSO } from '@/lib/auth-helper';
export default function Home() {
+ const { user, isLoadingUser } = useAuth();
+
const router = useRouter();
+ const pathname = usePathname();
useEffect(() => {
- router.replace('/dashboard');
- }, [router]);
+ if (pathname === '/') {
+ router.replace('/dashboard');
+ }
+ }, [pathname]);
- return (
-
+ Please try refreshing the page or contact support if the problem + persists. +
+ +