diff --git a/astro.config.mjs b/astro.config.mjs
index 53de8b3..99ac264 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -1,11 +1,21 @@
-// @ts-check
import { defineConfig } from 'astro/config';
-
import node from '@astrojs/node';
-// https://astro.build/config
export default defineConfig({
adapter: node({
mode: 'standalone'
- })
+ }),
+
+ vite: {
+ resolve: {
+ alias: {
+ '@': '/src',
+ '@utils': '/src/lib/utils',
+ '@layouts': '/src/layouts',
+ '@components': '/src/components',
+ '@api': '/src/lib/api'
+ }
+ }
+ }
+
});
\ No newline at end of file
diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro
index 95f87e5..2aa5b46 100644
--- a/src/layouts/MainLayout.astro
+++ b/src/layouts/MainLayout.astro
@@ -15,7 +15,7 @@ import '../styles/global.css';
-
{`${title}`}
+ {`${title}`} - Деловой журнал Профиль
diff --git a/src/lib/api/menu.ts b/src/lib/api/menu.ts
index 77d703c..1c09103 100644
--- a/src/lib/api/menu.ts
+++ b/src/lib/api/menu.ts
@@ -1,50 +1,71 @@
import { fetchGraphQL } from './graphql-client.js';
-import type { MenuItem } from '../types/graphql.js';
+interface MenuItemNode {
+ uri: string;
+ url: string;
+ order: number;
+ label: string;
+}
+interface MenuNode {
+ name: string;
+ menuItems: {
+ nodes: MenuItemNode[];
+ };
+}
-// Функция ДЛЯ ГЛАВНОГО МЕНЮ (максимум 5 пунктов)
-export async function getMainHeaderMenu(): Promise