Server
Server
Dex's server handles asset serving, SPA fallback, and production deployment.
Topics
- Serving Assets — Static file serving
- SPA Fallback — Client-side routing support
- Dev Reload — Hot reload in development
- Logging — Request logs and output
- Production — Running in production
Quick Start
# Dev server
bun run dev
# Production build
bun run build
# Run production server
cd build
./serverKey Features
| Feature | Purpose |
|---|---|
| Asset Serving | Static files from web/public/ |
| SPA Fallback | Client-side routes work in production |
| Dev Reload | Hot reload on file changes |
| API Routes | Server-side endpoints |
See Also
- Build Process — How builds work
- Production Deployment — Deploying your app