fix imports

This commit is contained in:
Shreyaschorge
2025-07-19 02:43:31 +05:30
parent bade04b785
commit 882e4f166f
6 changed files with 107 additions and 77 deletions

View File

@@ -22,8 +22,8 @@ export default async function RootLayout({
let session = null;
if (shouldUseSession) {
try {
const authModule = eval('require("~/auth")');
session = await authModule.getSession();
const { getSession } = await import('~/auth');
session = await getSession();
} catch (error) {
console.warn('Failed to get session:', error);
}