irongit

Git hosting and a container registry in one Rust binary (axum + Astro)

irongit/frontend/astro.config.mjs
11 lines433 BJavaScript
1// @ts-check
2import { defineConfig } from "astro/config";
3import tailwindcss from "@tailwindcss/vite";
4
5export default defineConfig({
6 // `directory` emits about/index.html, which the Rust server resolves for
7 // /about, /about/ and /about.html alike. There is no `astro dev` here: the
8 // Rust server is the only server, and it rebuilds this on change.
9 build: { format: "directory" },
10 vite: { plugins: [tailwindcss()] },
11});