-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
37 lines (34 loc) · 996 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
36
37
import path from "node:path";
import { defineConfig, envField } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import sitemap from "@astrojs/sitemap";
import pkg from "./package.json";
import { pixelArtIcons } from "./build/icons";
import { cfPagesEnvVars } from "./build/cloudflare";
// https://astro.build/config
export default defineConfig({
adapter: cloudflare({ imageService: "cloudflare" }),
integrations: [
pixelArtIcons({
encryptedArchive: path.resolve("icons.tar.gz.enc"),
decryptionKeyVar: "PIXEL_ART_ICONS_DECRYPTION_KEY",
}),
cfPagesEnvVars(),
sitemap(),
],
env: {
schema: {
// Variables I set in the cloudflare pages build system
NODE_VERSION: envField.string({
access: "public",
context: "client",
default: pkg.volta.node,
}),
PNPM_VERSION: envField.string({
access: "public",
context: "client",
default: pkg.volta.pnpm,
}),
},
},
});