Skip to content

Commit 3ae76a9

Browse files
committed
Cloudflare Pages automatically handles compression (Brotli/gzip), so the plugin isn't needed
1 parent 5705818 commit 3ae76a9

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

astro.config.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from "astro/config";
33
import tailwindcss from "@tailwindcss/vite";
44
import sitemap from "@astrojs/sitemap";
55
// Image optimization is built into Astro 5.x - no separate package needed
6-
import { compression } from "vite-plugin-compression";
6+
// Compression is handled by Cloudflare Pages automatically
77

88

99

@@ -19,14 +19,7 @@ export default defineConfig({
1919
domains: ["images.unsplash.com"], // Allow external images
2020
},
2121
vite: {
22-
plugins: [
23-
tailwindcss(),
24-
compression({
25-
algorithm: "gzip",
26-
ext: ".gz",
27-
deleteOriginFile: false,
28-
}),
29-
],
22+
plugins: [tailwindcss()],
3023
server: {
3124
fs: {
3225
strict: true,

0 commit comments

Comments
 (0)