links/astro.config.ts

40 lines
727 B
TypeScript
Raw Normal View History

2023-01-06 21:06:35 +01:00
import { defineConfig } from 'astro/config';
2023-01-06 20:10:00 +01:00
2023-01-06 21:06:35 +01:00
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import image from '@astrojs/image';
import vercel from '@astrojs/vercel/static';
import compress from 'astro-compress';
2023-01-06 22:12:31 +01:00
import robotsTxt from 'astro-robots-txt';
2023-01-06 20:14:29 +01:00
2023-01-06 21:56:34 +01:00
import { SITE } from './src/config';
2023-01-06 20:14:29 +01:00
// https://astro.build/config
export default defineConfig({
2023-01-06 21:56:34 +01:00
site: SITE.url,
2023-01-06 21:06:35 +01:00
base: '/',
trailingSlash: 'never',
output: 'static',
integrations: [
tailwind(),
sitemap(),
image(),
compress({
css: true,
html: true,
img: false,
js: true,
svg: false,
2023-01-06 22:12:31 +01:00
}),
robotsTxt({
policy: [
{
userAgent: '*',
},
],
sitemap: true,
2023-01-06 21:06:35 +01:00
}),
],
adapter: vercel(),
2023-01-06 20:14:29 +01:00
});