fix: remove compress plugin

This commit is contained in:
Oliver Davies 2023-04-23 21:28:47 +01:00
parent 3a96b3c7e2
commit e2fccef0ad

View file

@ -10,17 +10,22 @@ import compress from "astro-compress";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
integrations: [alpinejs(), mdx(), sitemap({ integrations: [
alpinejs(),
mdx(),
sitemap({
serialize(item) { serialize(item) {
// To prevent crawling errors, remove the trailing slash from the URL // 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. // otherwise it will be a link to a redirect URL and not the content.
item.url = item.url.replace(/\/$/, ""); item.url = item.url.replace(/\/$/, "");
return item; return item;
} }
}), tailwind({ }),
tailwind({
config: { config: {
applyBaseStyles: false applyBaseStyles: false
} }
}), compress()], }),
],
site: "https://www.oliverdavies.uk" site: "https://www.oliverdavies.uk"
}); });