achat-maison-albi-fr/astro.config.mjs
Emil Gulamov 982f6f081a Enable prefetch and experimental client prerender in Astro config
The commit introduces prefetch in the Astro configuration to improve initial load speed. Additionally, it enables an experimental feature, clientPrerender, to potentially enhance rendering performance. Changes have been made keeping both functionality and performance improvements in mind.
2024-02-22 22:08:45 +04:00

21 lines
No EOL
642 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";
// 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 })],
output: 'static',
experimental: {
clientPrerender: true
},
adapter: vercelStatic()
});