self-hosting
Serving something, such as fonts or the whole app, from your own servers rather than a third-party service.
In more detail
Self-hosting gives full control over data, privacy and configuration, at the cost of running and updating the infrastructure yourself. It also removes a dependency on the third party being fast and available.
Example
next/font self-hosts fonts; the course self-hosts Next.js in Docker using the standalone output.Related terms
- next/font — The Next.js font module, which downloads fonts at build time, serves them from your own domain and sets up fallbacks that avoid layout shift.
- standalone output — A next.config setting that makes next build produce a self-contained folder with a minimal server.js and only the node_modules files it needs.
Taught in
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture