oliverdavies.uk/astro.config.mjs

32 lines
782 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";
import mdx from "@astrojs/mdx";
2023-01-30 23:25:35 +00:00
import sitemap from "@astrojs/sitemap";
2022-10-07 08:14:10 +00:00
// https://astro.build/config
2023-04-21 18:29:28 +00:00
import compress from "astro-compress";
2023-04-21 18:29:28 +00:00
// https://astro.build/config
export default defineConfig({
2023-04-23 20:28:47 +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
}
}),
],
2023-04-21 18:29:28 +00:00
site: "https://www.oliverdavies.uk"
});