oliverdavies.uk/astro.config.mjs

28 lines
811 B
JavaScript
Raw Normal View History

import { defineConfig } from "astro/config";
2022-10-07 08:14:10 +00:00
import alpinejs from "@astrojs/alpinejs";
import tailwind from "@astrojs/tailwind";
2022-10-07 08:14:10 +00:00
import mdx from "@astrojs/mdx";
2023-01-30 23:25:35 +00:00
import sitemap from "@astrojs/sitemap";
2023-04-21 18:29:28 +00:00
import compress from "astro-compress";
2023-06-27 23:00:53 +00:00
// https://astro.build/config
import markdoc from "@astrojs/markdoc";
2023-04-21 18:29:28 +00:00
// https://astro.build/config
export default defineConfig({
2023-05-18 23:15:01 +00:00
compressHTML: true,
2023-06-27 23:00:53 +00:00
integrations: [alpinejs(), mdx(), sitemap({
serialize(item) {
// To prevent crawling errors, remove the trailing slash from the URL
// otherwise it will be a link to a redirect URL and not the content.
item.url = item.url.replace(/\/$/, "");
return item;
}
}), tailwind({
config: {
applyBaseStyles: false
}
}), markdoc()],
2023-06-15 15:14:36 +00:00
site: "https://www.oliverdavies.uk"
2023-06-27 23:00:53 +00:00
});