Updated the versions of @astrojs/check, @astrojs/vercel and astro packages in package.json and package-lock.json. Also enabled the directRenderScript experimental feature in astro.config.mjs. Refactored navigation link active class logic in NavLink.astro to use 'DOMContentLoaded' event for better performance.
22 lines
No EOL
672 B
JavaScript
22 lines
No EOL
672 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,
|
|
directRenderScript: true
|
|
},
|
|
adapter: vercelStatic()
|
|
}); |