mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-06 08:01:24 +00:00
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.
26 lines
701 B
JavaScript
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'],
|
|
},
|
|
},
|
|
});
|