Fresh Astro v6 beta install
This post corresponds to PR 1 in the build series.
What shipped
- A clean baseline created with
bun create astro@latest(minimal template). - Upgraded to Astro v6 beta (pinned at
^6.0.0-beta.3) and confirmedbun run buildstays green. - A first working “blog spine”:
- Content collection for posts (
src/content.config.ts) - Post stubs living at
src/content/posts/ /posts/index route and per-post pages at/posts/<id>/- Draft behavior: drafts show in dev, but are filtered in production builds
- Content collection for posts (
Why
- I want to build this blog against the direction Astro is heading (not just where it is today).
- I’m willing to accept some churn in exchange for learning, as long as changes stay small and reviewable.
- I also want the repo to be legible early: real content files + real routes, not just a placeholder homepage.
Decisions (for now)
- Use Astro v6’s loader-based content config (
src/content.config.ts), not legacy collections. - Keep the schema intentionally minimal in this increment (title/description/draft/pubDate), then expand it later in the dedicated “content model” PR.
- Route by entry
id(derived from the filename), so URLs are stable and predictable.
Links
- PR: https://github.com/gtwright/density-disk/pull/2
- Key files:
package.jsonsrc/content.config.tssrc/pages/posts/index.astrosrc/pages/posts/[...id].astrosrc/content/posts/