links/astro.config.ts

40 lines
785 B
TypeScript
Raw Normal View History

2023-04-01 11:21:00 +02:00
import { defineConfig } from "astro/config";
2023-01-06 20:10:00 +01:00
2023-04-01 11:21:00 +02: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";
import robotsTxt from "astro-robots-txt";
2023-01-06 20:14:29 +01:00
2023-04-01 11:21:00 +02:00
import { SITE } from "./src/config";
2023-01-06 21:56:34 +01:00
2023-01-06 20:14:29 +01:00
// https://astro.build/config
export default defineConfig({
2023-04-01 11:21:00 +02:00
site: SITE.url,
base: "/",
trailingSlash: "never",
output: "static",
integrations: [
tailwind(),
sitemap(),
image(),
compress({
css: true,
html: true,
img: false,
js: true,
svg: false,
}),
robotsTxt({
policy: [
{
userAgent: "*",
},
],
sitemap: true,
}),
],
adapter: vercel(),
2023-01-06 20:14:29 +01:00
});