2024-08-27 00:50:27 -05:00
|
|
|
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";
|
2024-11-19 20:11:02 -05:00
|
|
|
import betterImageService from "astro-better-image-service";
|
2024-11-20 22:19:59 -05:00
|
|
|
import node from '@astrojs/node';
|
2024-05-13 22:34:06 -05:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
site: 'https://sudovanilla.org',
|
2024-08-27 00:50:27 -05:00
|
|
|
// Slug issue if not enabled
|
2024-05-13 22:34:06 -05:00
|
|
|
redirects: {
|
2024-11-19 20:11:02 -05:00
|
|
|
'/docs/': '/docs/zorn/introduction/',
|
2024-11-21 18:53:30 -05:00
|
|
|
'/docs/minpluto': '/docs/zorn/introduction/'
|
2024-05-13 22:34:06 -05:00
|
|
|
},
|
2024-11-19 20:11:02 -05:00
|
|
|
integrations: [markdoc(), mdx(),
|
|
|
|
betterImageService({
|
|
|
|
limitInputPixels: true
|
|
|
|
}),
|
|
|
|
(await import("@playform/compress")).default(),
|
|
|
|
robotsTxt({
|
2024-08-27 00:50:27 -05:00
|
|
|
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()],
|
2024-11-20 20:09:56 -05:00
|
|
|
output: 'server',
|
2024-11-20 22:19:59 -05:00
|
|
|
adapter: node({
|
|
|
|
mode: 'standalone',
|
|
|
|
}), server: {
|
|
|
|
port: 5522,
|
2024-05-13 22:34:06 -05:00
|
|
|
host: true
|
2024-08-26 21:05:35 -05:00
|
|
|
},
|
|
|
|
devToolbar: {
|
|
|
|
enabled: false
|
2024-09-19 12:43:34 -05:00
|
|
|
},
|
2024-11-29 14:51:20 -05:00
|
|
|
experimental: {
|
|
|
|
serverIslands: true
|
|
|
|
},
|
2024-09-19 12:43:34 -05:00
|
|
|
vite: {
|
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
scss: {
|
|
|
|
additionalData: `
|
|
|
|
@use "astro-color-mode/use-color-mode.scss" as *;
|
|
|
|
`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-08-27 00:50:27 -05:00
|
|
|
});
|