diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c37bfd35..6028a8cb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -127,6 +127,7 @@ build:dev:
NEXT_PUBLIC_LTI_URL: 'https://dev-lti-erp.mbugroup.id'
NEXT_PUBLIC_SSO_LOGIN_URL: 'https://dev-auth-erp.mbugroup.id'
NEXT_PUBLIC_API_BASE_URL: 'https://dev-api-lti.mbugroup.id/api'
+ NEXT_PUBLIC_CLIENT_ID: 'Lumbung-Telur-Indonesia'
deploy:dev:
<<: *deploy_template
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 db9638df..9cc0177d 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,11 +1,29 @@
-import { redirect } from 'next/navigation';
+'use client';
+
+import { useEffect } from 'react';
+import { usePathname, useRouter } from 'next/navigation';
+import { useAuth } from '@/services/hooks/useAuth';
+import { redirectToSSO } from '@/lib/auth-helper';
export default function Home() {
- redirect('/dashboard');
+ const { user, isLoadingUser } = useAuth();
- return (
- LTI ERP
-