Files
site-documentation/astro.config.mjs
2026-02-08 15:41:11 -06:00

62 lines
1.2 KiB
JavaScript

// @ts-check
import { defineConfig } from "astro/config";
import node from "@astrojs/node";
import tailwindcss from "@tailwindcss/vite";
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";
};
// https://astro.build/config
export default defineConfig({
site: getSiteURL(),
integrations: [
tailwindcss(),
starlight({
title: "Alex Lebens Docs",
customCss: [
'./src/styles/custom.css',
],
social: [
{
icon: "external",
label: "Homepage",
href: "https://www.alexlebens.dev",
},
],
plugins: [
starlightThemeRapide()
],
sidebar: [
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Reference",
autogenerate: { directory: "reference" },
},
],
}),
],
plugins: {
"@tailwindcss/postcss": {},
},
vite: {
plugins: [tailwindcss()],
},
adapter: node({
mode: "standalone",
}),
});