Update Versi 1.5.27 #32

Merged
bagasbanuna merged 1009 commits from staging into main 2025-12-17 12:22:28 +08:00
120 changed files with 9568 additions and 3042 deletions
Showing only changes of commit 34d15181a2 - Show all commits

View File

@@ -4,7 +4,8 @@ import { CheckCookies_UiLayout } from "@/app_modules/check_cookies";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<CheckCookies_UiLayout>{children}</CheckCookies_UiLayout>
{children}
{/* <CheckCookies_UiLayout>{children}</CheckCookies_UiLayout> */}
</>
);
}

View File

@@ -41,15 +41,14 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
const userLoginId = await funGetUserIdByToken();
if (!token) return <>Require Token Storage</>;
// if (!token) return <>Require Token Storage</>;
// const userLoginId = await funGetUserIdByToken();
return (
<RootStyleRegistry>
{/* <MqttLoader />
<TokenProvider token={token} envObject={envObject} /> */}
<RealtimeProvider userLoginId={userLoginId as string} />
{/* <RealtimeProvider userLoginId={userLoginId as string} /> */}
{children}
</RootStyleRegistry>
);

View File

@@ -12,16 +12,10 @@ export function middleware(request: NextRequest) {
_.isEmpty(cookies?.value) ||
_.isUndefined(cookies?.value)
) {
return NextResponse.redirect(new URL("/", request.url));
return NextResponse.redirect(new URL("/dev/auth/login", request.url));
}
// return NextResponse.redirect(new URL("/", request.url));
}
// See "Matching Paths" below to learn more
export const config = {
matcher: [
"/((?!_next|static|favicon.ico|manifest).*)",
],
matcher: ["/((?!_next|static|favicon.ico|manifest).*)"],
};