Configuration
Crax uses a crax.config.mjs file at the root of your project for all configuration.
Default Config
Config Options
siteUrl
Your site's public URL. Used for canonical URLs and SEO metadata.
pagesDir
Directory where your page files live. Defaults to src/pages.
pageExtensions
File extensions treated as page routes. Defaults to ['tsx'].
images
Image optimization settings:
pwa
Progressive Web App configuration (see PWA guide):
How Config is Loaded
Crax deep-merges your crax.config.mjs over the default config at startup. You only need to specify the values you want to override.
