-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
98 lines (96 loc) · 2.36 KB
/
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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";
const site = "https://fxhu.kripod.dev";
export default defineConfig({
site,
trailingSlash:
// TODO: Use 'always', see: https://github.com/withastro/astro/issues/10149
process.env.NODE_ENV === "production" ? "always" : "ignore",
integrations: [
starlight({
title: "FXHU",
description:
"Exchange rates API sourced from the National Bank of Hungary (Magyar Nemzeti Bank, MNB). Unlimited & CORS-enabled.",
social: {
github: "https://github.com/kripod/fxhu",
},
editLink: {
baseUrl: "https://github.com/kripod/fxhu/edit/main/",
},
plugins: [
starlightOpenAPI([
{
base: "docs/v1",
collapsed: false,
label: "Reference",
schema: "./src/pages/api/v1/_openapi.json",
},
]),
],
sidebar: [
...openAPISidebarGroups,
{
label: "Demo",
autogenerate: {
directory: "demo",
},
},
],
head: [
{
tag: "link",
attrs: {
rel: "icon",
href: "/favicon.ico",
sizes: "48x48",
},
},
{
tag: "link",
attrs: {
rel: "apple-touch-icon",
href: "/assets/logo-maskable-180.png",
sizes: "180x180",
},
},
{
tag: "meta",
attrs: {
property: "og:image",
content: new URL("/assets/social-image.png", site).toString(),
},
},
{
tag: "meta",
attrs: {
property: "og:image:width",
content: "1200",
},
},
{
tag: "meta",
attrs: {
property: "og:image:height",
content: "628",
},
},
{
tag: "meta",
attrs: {
name: "twitter:card",
content: "summary_large_image",
},
},
],
customCss: ["./src/custom-styles.css"],
}),
tailwind({
applyBaseStyles: false,
nesting: true,
}),
react(),
],
});