-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathastro.config.ts
More file actions
81 lines (80 loc) · 1.85 KB
/
astro.config.ts
File metadata and controls
81 lines (80 loc) · 1.85 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
75
76
77
78
79
80
81
import mdx from "@astrojs/mdx";
import preact from "@astrojs/preact";
import sitemap from "@astrojs/sitemap";
import favicons from "astro-favicons";
import icon from "astro-icon";
import { defineConfig, fontProviders } from "astro/config";
export default defineConfig({
site: "https://cloudnativedays.at",
integrations: [
mdx(),
sitemap(),
preact({ compat: true }),
icon(),
favicons({
input: {
favicons: ["public/favicon.png"],
},
short_name: "CNDA",
name: "Cloud Native Days Austria",
}),
],
image: {
remotePatterns: [
{ protocol: "https", hostname: "sessionize.com" },
{ protocol: "https", hostname: "cache.sessionize.com" },
],
},
fonts: [
{
provider: fontProviders.local(),
name: "Plus Jakarta Sans",
cssVariable: "--font-plus-jakarta-sans",
fallbacks: ["system-ui", "sans-serif"],
options: {
variants: [
{
src: ["./src/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-400.woff2"],
weight: "400",
style: "normal",
},
{
src: ["./src/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-600.woff2"],
weight: "600",
style: "normal",
},
{
src: ["./src/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-700.woff2"],
weight: "700",
style: "normal",
},
],
},
},
{
provider: fontProviders.local(),
name: "Fira Code",
cssVariable: "--font-fira-code",
fallbacks: ["ui-monospace", "monospace"],
options: {
variants: [
{
src: ["./src/assets/fonts/fira-code/FiraCode-Regular.woff2"],
weight: "400",
style: "normal",
},
{
src: ["./src/assets/fonts/fira-code/FiraCode-SemiBold.woff2"],
weight: "600",
style: "normal",
},
{
src: ["./src/assets/fonts/fira-code/FiraCode-Bold.woff2"],
weight: "700",
style: "normal",
},
],
},
},
],
});