Правка файла robots.txt
This commit is contained in:
parent
2e892cccfb
commit
762727290f
3 changed files with 31 additions and 1 deletions
|
|
@ -10,7 +10,24 @@ import solidJs from '@astrojs/solid-js';
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://advokat086.ru',
|
||||
integrations: [astroIcon(), mdx(), sitemap(), solidJs()],
|
||||
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()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue