mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Refactor getConfig calls
This commit is contained in:
@@ -66,8 +66,7 @@ export default async function RootLayout({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const hostname = new URL(process.env.NEXT_PUBLIC_SITE_URL!).hostname;
|
||||
const config = await getConfig(hostname);
|
||||
const config = await getConfig();
|
||||
const hasAuthCookie = !!cookies().get(SESSION_COOKIE_NAME);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user