Overview
Adapters are convenience wrappers that apply framework-specific best practices:Available Adapters
React
- Manifest:
.vite/manifest.json - Output directory:
dist
Vue
- Manifest:
.vite/manifest.json - Output directory:
dist
Svelte
- Manifest:
.vite/manifest.json - Output directory:
dist
SvelteKit
- Output directory:
build - Index:
index.html
Solid
- Manifest:
.vite/manifest.json - Output directory:
dist
Astro
- Output directory:
dist - Index:
index.html
Angular
- Output directory:
dist/app-name/browser - Index:
index.html
Using Adapters
Basic Usage
With Embedded FS
Custom Configuration
Adapters still accept all standard options:When to Use Adapters
Use adapters when:- Using standard framework setup
- Want framework-specific optimizations
- Prefer convention over configuration
frontend.WithOptions when:
- Custom build configuration
- Non-standard directory structure
- Need full control over options
Creating Custom Adapters
You can create your own adapters:Adapter Comparison
| Adapter | Build Tool | Output Dir | Manifest | Notes |
|---|---|---|---|---|
| React | Vite | dist | .vite/manifest.json | Standard Vite setup |
| Vue | Vite | dist | .vite/manifest.json | Standard Vite setup |
| Svelte | Vite | dist | .vite/manifest.json | Standard Vite setup |
| SvelteKit | SvelteKit | build | None | Static adapter |
| Angular | Angular CLI | dist/app/browser | None | Production build |
| Solid | Vite | dist | .vite/manifest.json | Standard Vite setup |
| Astro | Astro | dist | None | Static output |