jackmerrill.com/astro.config.mjs
2024-08-28 00:14:30 -04:00

29 lines
580 B
JavaScript

import {
defineConfig,
passthroughImageService,
squooshImageService,
} from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react()],
output: "hybrid",
adapter: vercel({
// imageService: true,
webAnalytics: {
enabled: true,
},
speedInsights: {
enabled: true,
},
functionPerRoute: true,
}),
image: {
service: squooshImageService(),
},
});