-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
78 lines (76 loc) · 3.49 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
import {defineConfig, envField} from 'astro/config'
import tailwind from '@astrojs/tailwind'
import markdoc from '@astrojs/markdoc'
import rehypeSlug from 'rehype-slug'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import sitemap from '@astrojs/sitemap'
import cloudflare from '@astrojs/cloudflare'
// https://astro.build/config
export default defineConfig({
site: 'https://vikunja.io',
output: 'static',
integrations: [
tailwind(),
markdoc(),
sitemap({
serialize(item) {
if (item.url.endsWith('/')) {
item.url = item.url.slice(0, -1)
}
return item
},
}),
],
adapter: cloudflare(),
markdown: {
rehypePlugins: [
rehypeSlug,
[
// When changing content here, also change in Heading component for mdoc files
rehypeAutolinkHeadings,
{
behavior: 'append',
content: {
type: 'text',
value: '#',
},
properties: {
className: ['anchor-link ml-1'],
},
},
],
],
},
env: {
schema: {
TURNSTILE_SECRET: envField.string({context: 'server', access: 'secret'}),
},
},
redirects: {
'/blog/2020/05/vikunja-0.13.0-is-released/': '/changelog/vikunja-0.13.0-is-released',
'/blog/2020/07/vikunja-0.14.0-is-released/': '/changelog/vikunja-0.14.0-is-released',
'/blog/2020/07/vikunja-0.14.1-is-released/': '/changelog/vikunja-0.14.1-is-released',
'/blog/2020/10/vikunja-0.15.0-is-released/': '/changelog/vikunja-0.15.0-is-released',
'/blog/2020/10/api-vikunja-0.15.1-is-released/': '/changelog/api-vikunja-0.15.1-is-released',
'/blog/2021/01/vikunja-0.16.0-is-released/': '/changelog/vikunja-0.16.0-is-released',
'/blog/2021/04/api-vikunja-0.16.1-is-released/': '/changelog/api-vikunja-0.16.1-is-released',
'/blog/2021/05/vikunja-0.17.0-is-released/': '/changelog/vikunja-0.17.0-is-released',
'/blog/2021/06/api-vikunja-0.17.1-is-released/': '/changelog/api-vikunja-0.17.1-is-released',
'/blog/2021/09/whats-new-in-vikunja-0.18.0/': '/changelog/whats-new-in-vikunja-0.18.0',
'/blog/2021/09/vikunja-0.18.1-is-released/': '/changelog/vikunja-0.18.1-is-released',
'/blog/2021/11/vikunja-0.18.2-is-released/': '/changelog/vikunja-0.18.2-is-released',
'/blog/2022/08/whats-new-in-vikunja-0.19.0/': '/changelog/whats-new-in-vikunja-0.19.0',
'/blog/2022/08/vikunja-0.19.1-is-released/': '/changelog/vikunja-0.19.1-is-released',
'/blog/2022/08/api-vikunja-0.19.2-is-released/': '/changelog/api-vikunja-0.19.2-is-released',
'/blog/2022/10/whats-new-in-vikunja-0.20.0/': '/changelog/whats-new-in-vikunja-0.20.0',
'/blog/2022/11/vikunja-0.20.1-was-released/': '/changelog/vikunja-0.20.1-was-released',
'/blog/2022/12/vikunja-frontend-0.20.2-was-released/': '/changelog/vikunja-frontend-0.20.2-was-released',
'/blog/2023/01/vikunja-frontend-v0.20.3-and-api-v0.20.2-was-released/': '/changelog/vikunja-frontend-v0.20.3-and-api-v0.20.2-was-released',
'/blog/2023/03/vikunja-frontend-v0.20.4-and-api-v0.20.3-was-released/': '/changelog/vikunja-frontend-v0.20.4-and-api-v0.20.3-was-released',
'/blog/2023/03/vikunja-frontend-v0.20.5-and-api-v0.20.4-was-released/': '/changelog/vikunja-frontend-v0.20.5-and-api-v0.20.4-was-released',
'/blog/2023/07/whats-new-in-vikunja-0.21.0/': '/changelog/whats-new-in-vikunja-0.21.0',
'/blog/2023/12/whats-new-in-vikunja-0.22.0/': '/changelog/whats-new-in-vikunja-0.22.0',
'/blog/2024/01/vikunja-frontend-and-api-v0.22.1-was-released/': '/changelog/vikunja-frontend-and-api-v0.22.1-was-released',
'/blog/2024/02/whats-new-in-vikunja-0.23.0/': '/changelog/whats-new-in-vikunja-0.23.0',
},
})