astro_advokat/frontend/astro.config.mjs
2026-04-15 00:15:06 +05:00

37 lines
No EOL
1.1 KiB
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import { default as astroIcon } from 'astro-icon';
import mdx from '@astrojs/mdx';
import node from '@astrojs/node';
import sitemap from '@astrojs/sitemap';
import solidJs from '@astrojs/solid-js';
// https://astro.build/config
export default defineConfig({
site: 'https://advokat086.ru',
integrations: [
astroIcon(),
mdx(),
sitemap({
filter: (page) => {
// Исключаем технические страницы
const blockedPaths = [
'/auth/', // авторизация и регистрация
'/admin', // админ-панель
'/api/', // API-эндпоинты
'/blog/search', // поиск по блогу
'/404', // страница ошибки
];
return !blockedPaths.some(path => page.includes(path));
},
}),
solidJs(),
],
prefetch: true,
vite: {
plugins: [tailwindcss()]
},
output: 'server',
adapter: node({ mode: 'standalone' }),
});