2024-06-27 17:07:03 +02:00
|
|
|
import {defineConfig, envField} from 'astro/config'
|
|
|
|
import tailwind from '@astrojs/tailwind'
|
|
|
|
import markdoc from '@astrojs/markdoc'
|
2024-07-08 18:03:18 +02:00
|
|
|
import rehypeSlug from 'rehype-slug'
|
|
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
2024-06-27 21:30:54 +02:00
|
|
|
import node from '@astrojs/node'
|
2024-10-12 14:13:30 +02:00
|
|
|
import sitemap from '@astrojs/sitemap'
|
2024-06-24 16:34:33 +02:00
|
|
|
|
2024-06-19 19:59:36 +02:00
|
|
|
// https://astro.build/config
|
2024-06-19 20:21:43 +02:00
|
|
|
export default defineConfig({
|
2024-07-01 21:45:35 +02:00
|
|
|
site: 'https://vikunja.io',
|
2024-06-27 17:07:03 +02:00
|
|
|
output: 'hybrid',
|
2024-10-24 16:34:17 +02:00
|
|
|
integrations: [
|
|
|
|
tailwind(),
|
|
|
|
markdoc(),
|
|
|
|
sitemap({
|
|
|
|
serialize(item) {
|
|
|
|
if (item.url.endsWith('/')) {
|
|
|
|
item.url = item.url.slice(0, -1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return item
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2024-06-27 21:30:54 +02:00
|
|
|
adapter: node({
|
|
|
|
mode: 'standalone',
|
|
|
|
}),
|
2024-07-08 18:03:18 +02:00
|
|
|
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'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
2024-06-27 17:07:03 +02:00
|
|
|
experimental: {
|
|
|
|
env: {
|
|
|
|
schema: {
|
|
|
|
TURNSTILE_SECRET: envField.string({context: 'server', access: 'secret'}),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-01 22:43:45 +02:00
|
|
|
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',
|
|
|
|
},
|
2024-06-27 17:07:03 +02:00
|
|
|
})
|