Overview of @fastify/vite
main@fastify/vite is a Fastify plugin designed to integrate Vite into your Fastify server. It provides three core capabilities:
- Development Mode: Runs the Vite development server as middleware within your Fastify server (only during development).
- Application Exposure: Exposes your Vite application to Fastify, providing configuration hooks to simplify router integration and other customizations.
- Production Mode: Automatically serves your Vite production bundle, which is inferred from your Vite configuration file.
For higher-level DX (Developer Experience) that mimics Nuxt or Next.js, you should use the companion packages @fastify/vue or @fastify/react.