Files
warmbly/site/astro.config.mjs
T
Matthew Meszaros db832fa896 feat: add blog content collection on the Astro 5 content layer
Posts are markdown/MDX files under src/content/blog with a zod-validated
schema (title, description, pubDate, tags, optional cover, draft). All
listing surfaces read through getPublishedPosts() so draft filtering has
a single owner. @astrojs/mdx is pinned to ^4.x: the npm latest (v6)
requires Astro 6 and would break this tree.
2026-06-10 17:14:57 +02:00

26 lines
701 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import sitemap from '@astrojs/sitemap';
import mdx from '@astrojs/mdx';
// https://astro.build/config
export default defineConfig({
site: 'https://warmbly.com',
integrations: [
mdx(),
sitemap({
// The 404 page is noindex and should never appear in the sitemap.
filter: (page) => !page.includes('/404'),
}),
],
vite: {
plugins: [tailwindcss()],
server: {
// Allow Tailscale MagicDNS names when `make site PUBLIC_HOST=…` exposes
// the dev server with --host. IPs + localhost are always allowed.
allowedHosts: ['.ts.net'],
},
},
});