oliverdavies.uk/astro.config.mjs

27 lines
654 B
JavaScript
Raw Normal View History

2022-10-07 08:14:10 +00:00
import mdx from "@astrojs/mdx";
2023-10-23 17:13:44 +00:00
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
2023-04-21 18:29:28 +00:00
// https://astro.build/config
export default defineConfig({
integrations: [
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
}
}),
],
site: "https://www.oliverdavies.uk"
});