achat-maison-albi-fr/astro.config.mjs
Emil Gulamov e0cec536e7 Update astro.config.mjs and add astro-critters package
Added the astro-critters package to improve critical CSS inlining and prioritization. This update involves changes to both the astro.config.mjs to import the package and set it up for integration, and package.json along with package-lock.json to add the package.
2024-03-17 17:25:44 +04:00

27 lines
No EOL
733 B
JavaScript

import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import vercelStatic from '@astrojs/vercel/static';
import sitemap from "@astrojs/sitemap";
import compressor from "astro-compressor";
import critters from "astro-critters";
// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
site: 'https://screwfast.uk',
image: {
domains: ["images.unsplash.com"]
},
prefetch: true,
integrations: [tailwind(), sitemap(), compressor({
gzip: false,
brotli: true
}), critters()],
output: 'static',
experimental: {
clientPrerender: true,
directRenderScript: true
},
adapter: vercelStatic()
});