generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
astro.config.mjs
69 lines (67 loc) · 1.95 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import cloudflare from '@astrojs/cloudflare';
import tailwind from '@astrojs/tailwind';
// https://astro.build/config
const config = defineConfig({
site: 'https://contribute.freecodecamp.org',
redirects: {
'/index': '/intro/',
'/FAQ': '/faq/'
},
i18n: {
defaultLocale: 'en',
locales: ['en'],
routing: {
prefixDefaultLocale: false
}
},
trailingSlash: 'always',
adapter: cloudflare({
imageService: 'cloudflare'
// platformProxy: {
// enabled: true
// }
}),
output: 'hybrid',
integrations: [
starlight({
title: 'Contribute | freeCodeCamp.org',
description: 'Contribute to freeCodeCamp.org',
logo: {
light: './public/icons/secondary_logo.svg',
dark: './public/icons/primary_logo.svg',
replacesTitle: true
},
favicon: 'favicon.ico',
tableOfContents: {
minHeadingLevel: 1,
maxHeadingLevel: 2
},
editLink: {
baseUrl: 'https://github.com/freeCodeCamp/contribute/edit/main/'
},
social: {
github: 'https://github.com/freeCodeCamp',
twitter: 'https://twitter.com/freeCodeCamp',
discord: 'https://chat.freecodecamp.org'
},
//sidebar: sidebar,
components: {
// Override the default `SocialIcons` component.
Header: './src/components/FCCHeader.astro',
MobileMenuToggle: './src/components/FCCMobileMenuToggle.astro',
ThemeProvider: './src/components/FCCThemeProvider.astro',
ThemeSelect: './src/components/FCCThemeSelect.astro',
Sidebar: './src/components/FCCSidebar.astro',
Pagination: './src/components/FCCPagination.astro'
},
customCss: ['./src/styles/tailwind.css', './src/styles/override.css']
}),
tailwind({
applyBaseStyles: false,
configFile: './tailwind.config.mjs'
})
]
});
export default config;