-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
51 lines (50 loc) · 1.31 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
import markdoc from "@astrojs/markdoc";
import keystatic from "@keystatic/astro";
import autoprefixer from "autoprefixer";
import postcssUtopia from "postcss-utopia";
import postcssMediaMinMax from "postcss-media-minmax";
import postcssLogicalViewportUnits from "@csstools/postcss-logical-viewport-units";
import postcssClamp from "postcss-clamp";
import cssnano from "cssnano";
// https://astro.build/config
export default defineConfig({
output: "hybrid",
adapter: cloudflare({
imageService: "compile",
}),
site: "https://namesake.fyi",
integrations: [sitemap(), react(), markdoc(), keystatic()],
prefetch: true,
vite: {
ssr: {
external: ["buffer", "path", "fs", "os", "crypto", "async_hooks"].map(
(i) => `node:${i}`,
),
},
css: {
postcss: {
plugins: [
autoprefixer(),
postcssUtopia({
minWidth: 320,
maxWidth: 1240,
}),
postcssMediaMinMax(),
postcssLogicalViewportUnits(),
postcssClamp(),
cssnano(),
],
},
},
},
devToolbar: {
enabled: false,
},
server: {
host: true,
},
});