website: precompress static files instead of relying on fastify compress
- no need to generate the compressed files at runtime - this prevents an issue with fastify compressing pagefind files
This commit is contained in:
@@ -4,6 +4,7 @@ import starlight from "@astrojs/starlight"
|
||||
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
|
||||
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
||||
import remarkTextr from "remark-textr"
|
||||
import compressor from "astro-compressor"
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
@@ -75,6 +76,7 @@ export default defineConfig({
|
||||
themes: ["github-dark", "github-light"],
|
||||
},
|
||||
}),
|
||||
compressor(),
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user