fix: update Navbar and layout server to improve structure and data handling

This commit is contained in:
2026-01-06 17:51:19 -05:00
parent 3bbd64631a
commit a912d0463b
2 changed files with 4 additions and 4 deletions
@@ -1,11 +1,11 @@
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ fetch }) => {
export const load: LayoutServerLoad = async ({ fetch, url }) => {
try {
const res = await fetch('/api/auth/info');
const options = await res.json();
return { options };
return { options , url: url.href };
} catch {
return { options: null };
return { options: null, url: url.href };
}
};