Skip to content
Kagan Mert

Hello, world

The first post on the rebuilt site: what changed, and why the stack is Next.js 16 with Sanity.

Portrait placeholder with the initials KMBy Sample Author
Blue gradient with the words Hello, world

This site was rebuilt from an empty create-next-app. Everything you read here comes from Sanity and is rendered by Next.js.

What is in the stack#

  • Next.js 16 with Cache Components
  • Sanity with an embedded Studio at /studio
  • Tailwind CSS v4 and shadcn/ui

Fetching content#

Queries are written with defineQuery so TypeGen can type the results:

sanity/lib/queries.ts
import { defineQuery } from "next-sanity";

export const postsQuery = defineQuery(`*[_type == "post"] | order(publishedAt desc)`);

Read more in the next-sanity documentation.

All posts