Files
site-documentation/astro.config.mjs
Alex Lebens dbe3d5cdd2
All checks were successful
test-build / guarddog (push) Successful in 24s
test-build / build (push) Successful in 54s
feat: change code theme
2026-03-31 22:10:15 -05:00

67 lines
1.3 KiB
JavaScript

// @ts-check
import { defineConfig } from "astro/config";
import node from "@astrojs/node";
import sitemap from '@astrojs/sitemap';
import starlight from "@astrojs/starlight";
import starlightThemeRapide from 'starlight-theme-rapide'
const getSiteURL = () => {
if (process.env.SITE_URL) {
return `https://${process.env.SITE_URL}`;
}
return "http://localhost:4321";
};
export default defineConfig({
site: getSiteURL(),
security: { csp: true },
prefetch: true,
integrations: [
sitemap(),
starlight({
title: "Alex Lebens Docs",
customCss: [
'./src/styles/custom.css',
],
expressiveCode: {
themes: ['vitesse-light', 'vitesse-dark'],
},
social: [
{
icon: "external",
label: "Homepage",
href: "https://www.alexlebens.dev",
},
],
plugins: [
starlightThemeRapide()
],
sidebar: [
{
label: "Reference",
autogenerate: { directory: "reference" },
},
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Applications",
collapsed: true,
autogenerate: { directory: "applications" },
},
],
})
],
output: 'static',
adapter: node({
mode: 'standalone',
}),
});