// @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: "Reference", autogenerate: { directory: "reference" }, }, { label: "Guides", autogenerate: { directory: "guides" }, }, { label: "Applications", autogenerate: { directory: "applications" }, }, ], }), ], plugins: { "@tailwindcss/postcss": {}, }, vite: { plugins: [tailwindcss()], }, adapter: node({ mode: "standalone", }), });