Clean up Astro config

This commit is contained in:
Korbs 2024-12-03 23:04:33 -05:00
parent 035e622fb8
commit 6cf8fde198

View file

@ -1,9 +1,7 @@
import { defineConfig } from 'astro/config';
import markdoc from '@astrojs/markdoc';
import robotsTxt from 'astro-robots-txt';
import mdx from '@astrojs/mdx';
import vue from "@astrojs/vue";
import betterImageService from "astro-better-image-service";
import node from '@astrojs/node';
export default defineConfig({
@ -13,69 +11,16 @@ export default defineConfig({
'/docs/': '/docs/zorn/introduction/',
'/docs/minpluto': '/docs/zorn/introduction/'
},
integrations: [markdoc(), mdx(),
betterImageService({
limitInputPixels: true
}),
(await import("@playform/compress")).default(),
robotsTxt({
policy: [{
userAgent: 'Googlebot',
disallow: '/'
}, {
userAgent: 'Bingbot',
disallow: '/'
}, {
userAgent: '404checker',
disallow: '/'
}, {
userAgent: 'MJ12Bot',
disallow: '/'
}, {
userAgent: 'AspiegelBot',
disallow: '/'
}, {
userAgent: 'PetalBot',
disallow: '/'
}, {
userAgent: 'AhrefsBot',
disallow: '/'
}, {
userAgent: 'SEMrushBot',
disallow: '/'
}, {
userAgent: 'DotBot',
disallow: '/'
}, {
userAgent: 'Slurp',
disallow: '/'
}, {
userAgent: 'DuckDuckBot',
disallow: '/'
}, {
userAgent: 'YandexBot',
disallow: '/'
}, {
userAgent: 'MauiBot',
disallow: '/'
}, {
userAgent: 'baiduspider',
disallow: '/'
}, {
userAgent: 'adidxbot',
disallow: '/'
}, {
userAgent: 'microsoftbot',
disallow: '/'
}, {
userAgent: 'OtherBot',
disallow: '/'
}]
}), vue()],
integrations: [
mdx(),
vue(),
robotsTxt({policy: [{userAgent: 'Googlebot',disallow: '/'}, {userAgent: 'Bingbot',disallow: '/'}, {userAgent: '404checker',disallow: '/'}, {userAgent: 'MJ12Bot',disallow: '/'}, {userAgent: 'AspiegelBot',disallow: '/'}, {userAgent: 'PetalBot',disallow: '/'}, {userAgent: 'AhrefsBot',disallow: '/'}, {userAgent: 'SEMrushBot',disallow: '/'}, {userAgent: 'DotBot',disallow: '/'}, {userAgent: 'Slurp',disallow: '/'}, {userAgent: 'DuckDuckBot',disallow: '/'}, {userAgent: 'YandexBot',disallow: '/'}, {userAgent: 'MauiBot',disallow: '/'}, {userAgent: 'baiduspider',disallow: '/'}, {userAgent: 'adidxbot',disallow: '/'}, {userAgent: 'microsoftbot',disallow: '/'}, {userAgent: 'OtherBot',disallow: '/'}]})
],
output: 'server',
adapter: node({
mode: 'standalone',
}), server: {
}),
server: {
port: 5522,
host: true
},