This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
forked from mearashadowfax/ScrewFast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
118 lines (116 loc) · 2.96 KB
/
astro.config.mjs
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import compressor from "astro-compressor";
import starlight from "@astrojs/starlight";
import { fileURLToPath } from 'node:url';
import netlify from "@astrojs/netlify";
import react from "@astrojs/react";
import markdoc from "@astrojs/markdoc";
import keystatic from '@keystatic/astro'
// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
site: "https://site.commercequest.space/",
image: {
domains: ["images.unsplash.com"]
},
prefetch: true,
integrations: [tailwind(), sitemap(), starlight({
title: "CommerceQuest Docs",
editLink: {
baseUrl: 'https://github.com/spryker-community/spryker-community.github.io/edit/main'
},
logo: {
src: './src/images/starlight/CQ_logo.svg',
replacesTitle: true
},
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en"
}
},
lastUpdated: true,
// https://starlight.astro.build/guides/sidebar/
sidebar: [{
label: "Community Guides",
autogenerate: {
directory: "guides"
}
}, {
label: "Community Projects",
autogenerate: {
directory: "tools"
}
}, {
label: "Contributing",
autogenerate: {
directory: "contributing"
}
}, {
label: "Event Blueprints",
autogenerate: {
directory: "events"
}
}, {
label: "Other Resources",
autogenerate: {
directory: "other"
}
}
/* {
label: "[Templates]]",
autogenerate: { directory: "templates" },
}, */],
social: {
github: "https://github.com/spryker-community"
},
disable404Route: true,
customCss: ["./src/assets/styles/starlight.css"],
favicon: "/favicon.ico",
components: {
SiteTitle: "./src/components/ui/starlight/SiteTitle.astro",
Head: "./src/components/ui/starlight/Head.astro",
Page: "./src/components/ui/starlight/Page.astro"
},
head: [{
tag: "meta",
attrs: {
property: "og:image",
content: "https://commercequest.space/" + "/social.webp"
}
}, {
tag: "meta",
attrs: {
property: "twitter:image",
content: "https://commercequest.space/" + "/social.webp"
}
}]
}), compressor({
gzip: false,
brotli: true
}), react(), markdoc(), keystatic()],
output: "hybrid",
experimental: {
clientPrerender: true,
directRenderScript: true
},
outdir: "dist",
// Add the default astro outdir path
vite: {
server: {
watch: {
usePolling: true
}
},
resolve: {
alias: [{
find: /^.*\/Page\.astro$/,
replacement: fileURLToPath(new URL('./src/components/ui/starlight/Page.astro', import.meta.url))
}]
}
},
adapter: netlify()
});