pesde/docs/astro.config.mjs
2024-10-28 17:07:01 +01:00

50 lines
918 B
JavaScript

import { defineConfig } from "astro/config"
import starlight from "@astrojs/starlight"
import tailwind from "@astrojs/tailwind"
import vercel from "@astrojs/vercel/serverless"
// https://astro.build/config
export default defineConfig({
redirects: {
"/": "/guides/getting-started",
},
integrations: [
starlight({
title: "pesde docs",
social: {
github: "https://github.com/daimond113/pesde",
},
sidebar: [
{
label: "Guides",
items: [
{
label: "Getting Started",
slug: "guides/getting-started",
},
],
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
],
components: {
SiteTitle: "./src/components/SiteTitle.astro",
},
customCss: ["./src/tailwind.css"],
}),
tailwind({
applyBaseStyles: false,
}),
],
vite: {
envDir: "..",
},
output: "hybrid",
adapter: vercel(),
})