99 lines
No EOL
2.2 KiB
JavaScript
99 lines
No EOL
2.2 KiB
JavaScript
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({
|
|
site: 'https://sudovanilla.org',
|
|
// Slug issue if not enabled
|
|
redirects: {
|
|
'/docs/': '/docs/zorn/introduction/',
|
|
'/docs/minpluto': '/docs/zorn/introduction/',
|
|
'/blog/minpluto-and-its-future-goals': '/blog/673e823bd79b8500015f4763',
|
|
'/blog/zen-browser-worth-the-hype': '/blog/673e81f4d79b8500015f4755',
|
|
'/blog/desktop-development-stops': '/blog/673e817fd79b8500015f474a',
|
|
},
|
|
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()],
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}), server: {
|
|
port: 5522,
|
|
host: true
|
|
},
|
|
devToolbar: {
|
|
enabled: false
|
|
},
|
|
vite: {
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: `
|
|
@use "astro-color-mode/use-color-mode.scss" as *;
|
|
`,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}); |