· 1 min read
Hello, world
This post lives in apps/site/src/content/blog/hello-world.mdx. Add a file next to it and it shows
up on the blog and in the sitemap.
Writing posts
Posts are Markdown with optional components (MDX). The frontmatter at the top is validated at build time, so a missing title or a malformed date fails the build instead of shipping.
// apps/site/src/content.config.ts
schema: z.object({
title: z.string(),
description: z.string(),
publishedAt: z.coerce.date(),
});
Set draft: true to keep a post out of production builds while you work on it.