kios-webapp/astro/astro.config.mjs

25 lines
622 B
JavaScript
Raw Normal View History

import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import image from "@astrojs/image";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
2024-04-02 12:16:28 +00:00
import react from "@astrojs/react";
2024-04-02 12:16:28 +00:00
// https://astro.build/config
export default defineConfig({
compressHTML: true,
2024-04-02 14:28:04 +00:00
server: { port: 3000 },
build: {
2024-04-02 12:16:28 +00:00
inlineStylesheets: "auto"
},
2024-04-02 14:28:04 +00:00
viewTransitions: true,
2024-04-02 12:16:28 +00:00
integrations: [tailwind({
config: {
applyBaseStyles: false
}
}), image({
serviceEntryPoint: "@astrojs/image/sharp"
}), prefetch({
selector: "a"
}), sitemap(), react()]
});