-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
35 lines (34 loc) · 906 Bytes
/
astro.config.ts
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
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import solidJs from "@astrojs/solid-js";
import UnoCSS from "unocss/astro";
// https://astro.build/config
export default defineConfig({
site: "https://jasperteo.com",
output: "server",
adapter: cloudflare({
platformProxy: { enabled: true },
imageService: "passthrough",
}),
integrations: [
solidJs(),
UnoCSS({ injectReset: "@unocss/reset/tailwind-compat.css" }),
],
security: { checkOrigin: true },
vite: {
css: { transformer: "lightningcss" },
build: { cssMinify: "lightningcss" },
// Temporary workaround for Cloudflare Workers
resolve: {
conditions: ["worker", "webworker"],
mainFields: ["module"],
},
},
server: {
headers: {
"Accept-CH": "Sec-CH-Prefers-Color-Scheme",
"Critical-CH": "Sec-CH-Prefers-Color-Scheme",
Vary: "Sec-CH-Prefers-Color-Scheme",
},
},
});