29 lines
580 B
JavaScript
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(),
|
|
},
|
|
});
|