Dex

Core Concepts

Core Concepts

Core concepts you need to understand before building with Dex.

Topics

  • File-Based Routing — How web/pages/ maps to routes and importPage loaders
  • Pages and Layouts — Layout composition, <Outlet>, and page metadata
  • Configuration — Customize paths, subdomains, Google fonts, and API codegen
  • Build Process — ESM code splitting, SSG prerendering, and the standalone Bun server executable
  • Dev vs Production — Runtime differences between dex start and dex start -p

Learning Path

  1. Start with routing — understand how files in web/pages/ become sorted route records
  2. Add layouts and metadata — wrap pages with GlobalLayout and named layouts in web/layouts/
  3. Configure your app — customize dex.config.ts for subdomains, fonts, rendering strategy, and @dex/pie
  4. Build and deploy — produce a code-split client bundle, SSG HTML, and build/server

On this page