fix: remove compress plugin
This commit is contained in:
parent
3a96b3c7e2
commit
e2fccef0ad
1 changed files with 17 additions and 12 deletions
|
@ -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: [
|
||||||
serialize(item) {
|
alpinejs(),
|
||||||
// To prevent crawling errors, remove the trailing slash from the URL
|
mdx(),
|
||||||
// otherwise it will be a link to a redirect URL and not the content.
|
sitemap({
|
||||||
item.url = item.url.replace(/\/$/, "");
|
serialize(item) {
|
||||||
return 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.
|
||||||
}), tailwind({
|
item.url = item.url.replace(/\/$/, "");
|
||||||
config: {
|
return item;
|
||||||
applyBaseStyles: false
|
}
|
||||||
}
|
}),
|
||||||
}), compress()],
|
tailwind({
|
||||||
|
config: {
|
||||||
|
applyBaseStyles: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
],
|
||||||
site: "https://www.oliverdavies.uk"
|
site: "https://www.oliverdavies.uk"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue