import { defineConfig } from "astro/config"; import starlight from "@astrojs/starlight"; // The site is served at the root of its own subdomain. Set COURSE_HOST at build time // (e.g. COURSE_HOST=course.example.com). Unset means a local run (http://localhost:4321); // deploys must not rely on this: deploy/Dockerfile and docker-compose.yml require COURSE_HOST. const host = process.env.COURSE_HOST; export default defineConfig({ site: host ? `https://${host}` : "http://localhost:4321", base: "/", integrations: [ starlight({ title: "Systemic Design Course", description: "A free, hands-on course on extensible systemic game design, in Rust and TypeScript.", social: [ { icon: "external", label: "Source repository", href: "https://gitea.lucaswinther.info/lucasw89/systemic-game-design-course", }, ], sidebar: [ { label: "Start here", items: ["disclaimer", "about"] }, { label: "Modules", items: [{ autogenerate: { directory: "course" } }] }, ], }), ], });