55 lines
No EOL
1.8 KiB
JavaScript
55 lines
No EOL
1.8 KiB
JavaScript
import { defineConfig } from 'astro/config';
|
|
import react from '@astrojs/react';
|
|
import markdoc from '@astrojs/markdoc';
|
|
import AutoImport from 'astro-auto-import';
|
|
import keystatic from '@keystatic/astro';
|
|
import node from '@astrojs/node'
|
|
import robotsTxt from 'astro-robots-txt'
|
|
import mdx from '@astrojs/mdx';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://sudovanilla.org',
|
|
trailingSlash: 'always', // Slug issue if not enabled
|
|
redirects: {
|
|
'/docs/': '/docs/minpluto/introduction/',
|
|
'/docs/minpluto': '/docs/minpluto/introduction/' // ?
|
|
},
|
|
integrations: [react(), markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]),
|
|
AutoImport({
|
|
imports: [
|
|
'./src/components/keystatic/Image.astro',
|
|
'./src/components/init/SoftwareItem.astro',
|
|
],
|
|
}),
|
|
mdx(), // This must initalzied after AutoImport, not before
|
|
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: {
|
|
port: 2014,
|
|
host: true
|
|
}
|
|
}); |