-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
74 lines (72 loc) · 1.6 KB
/
astro.config.ts
File metadata and controls
74 lines (72 loc) · 1.6 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { defineConfig, fontProviders, envField, svgoOptimizer } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import mdx from "@astrojs/mdx";
import expressiveCode from "astro-expressive-code";
// https://astro.build/config
export default defineConfig({
output: "static",
site: "https://sebdanielsson.dev",
env: {
schema: {
GITHUB_USER: envField.string({
context: "server",
access: "public",
optional: true,
default: "sebdanielsson",
}),
GITHUB_REPO: envField.string({
context: "server",
access: "public",
optional: true,
default: "sebdanielsson.dev",
}),
COMMIT_ID: envField.string({
context: "server",
access: "public",
optional: true,
default: "UNKNOWN COMMIT",
}),
GH_API: envField.string({
context: "server",
access: "secret",
optional: false,
}),
},
validateSecrets: true,
},
security: {
checkOrigin: true,
},
integrations: [
expressiveCode({
themes: ["github-dark"],
}),
mdx(),
],
vite: {
plugins: [tailwindcss()],
},
markdown: {
shikiConfig: {
theme: "github-dark",
},
},
image: {
responsiveStyles: true,
},
fonts: [
{
provider: fontProviders.fontsource(),
name: "Kalam",
cssVariable: "--font-kalam",
},
],
experimental: {
svgOptimizer: svgoOptimizer(),
/* csp: {
directives: [
"default-src 'self' https://plausible.hogwarts.zone https://static.cloudflareinsights.com",
],
}, */
},
});