forked from rotary-dev-fellowship/website
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathastro.config.mjs
More file actions
104 lines (103 loc) · 2.83 KB
/
astro.config.mjs
File metadata and controls
104 lines (103 loc) · 2.83 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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 starlightImageZoom from "starlight-image-zoom";
// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
site: 'https://fullstackpanama.pages.dev',
image: {
domains: ["images.unsplash.com"],
},
i18n: {
defaultLocale: "es",
locales: ["es"],
routing: {
prefixDefaultLocale: false,
},
},
prefetch: true,
integrations: [
tailwind(),
sitemap({
i18n: {
defaultLocale: "es", // All urls that don't contain `fr` after `https://screwfast.uk/` will be treated as default locale, i.e. `en`
locales: {
es: "es", // The `defaultLocale` value must present in `locales` keys
},
},
}),
starlight({
title: 'FullStack Panama Docs',
editLink: {
baseUrl: 'https://github.com/fullstackpanama/website/edit/develop/',
},
defaultLocale: "root",
locales: {
root: {
label: "Español",
lang: "es",
},
},
// https://starlight.astro.build/guides/sidebar/
sidebar: [
{
label: "Guías de Inicio Rápido",
// translations: {
// de: "Schnellstartanleitungen",
// es: "Guías de Inicio Rápido",
// fa: "راهنمای شروع سریع",
// fr: "Guides de Démarrage Rapide",
// ja: "クイックスタートガイド",
// "zh-cn": "快速入门指南",
// },
autogenerate: { directory: "docs/guias" },
},
{
label: "Recursos",
autogenerate: { directory: "docs/recursos" },
},
],
social: {
github: "https://github.com/fullstackpanama",
},
disable404Route: true,
customCss: ["./src/styles/starlight.css"],
favicon: "/favicon.ico",
components: {
SiteTitle: "./src/components/ui/starlight/SiteTitle.astro",
Head: "./src/components/ui/starlight/Head.astro",
},
head: [
{
tag: "meta",
attrs: {
property: "og:image",
content: "https://fullstackpanama.pages.dev" + "/docs-social.webp"
},
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: "https://fullstackpanama.pages.dev" + "/docs-social.webp"
},
},
],
plugins: [
starlightImageZoom(),
],
}),
compressor({
gzip: false,
brotli: true,
}),
],
output: "static",
experimental: {
clientPrerender: true,
directRenderScript: true,
},
});