Core Concepts
Core Concepts
Core concepts you need to understand before building with Dex.
Topics
- File-Based Routing — How
web/pages/maps to routes andimportPageloaders - 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 startanddex start -p
Learning Path
- Start with routing — understand how files in
web/pages/become sorted route records - Add layouts and metadata — wrap pages with
GlobalLayoutand named layouts inweb/layouts/ - Configure your app — customize
dex.config.tsfor subdomains, fonts, rendering strategy, and@dex/pie - Build and deploy — produce a code-split client bundle, SSG HTML, and
build/server