Files
ghall.space/astro.config.mjs
2026-05-05 18:08:15 -04:00

34 lines
752 B
JavaScript

import alpinejs from '@astrojs/alpinejs';
// https://astro.build/config
import mdx from '@astrojs/mdx';
import { defineConfig } from 'astro/config';
import pagefind from 'astro-pagefind';
import rehypeExternalLinks from 'rehype-external-links';
// https://astro.build/config
export default defineConfig({
site: 'https://ghall.space',
output: 'static',
markdown: {
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
rehypePlugins: [
[rehypeExternalLinks, { target: '_blank', rel: ['noopener', 'noreferrer'] }],
],
},
integrations: [
mdx(),
alpinejs({ entrypoint: '/src/entrypoint' }),
pagefind(),
],
redirects: {
'/posts/[...slug]': '/blog/[...slug]',
'/blog': '/blog/page/1',
},
});