Installation
Install the required dependencies:Configuration
Configuration Options
TheVite resource extends Website and accepts all its properties:
Properties
entrypoint(optional): Path to the worker entrypoint file- Default:
undefined(SPA mode)
- Default:
assets(optional): Path to static assets directory- Default:
dist/client(if entrypoint provided), otherwisedist
- Default:
bindings: Cloudflare bindings (KV, R2, D1, etc.)dev: Local development configurationbuild: Build command override- Default: Automatically detected from package manager
Server-Side Rendering
For SSR applications, provide an entrypoint:Local Development
The Alchemy Vite plugin automatically:- Configures Cloudflare Workers runtime
- Provides access to bindings in development
- Ignores
.alchemydirectory from file watching
Related Resources
- Website - Base resource for web applications
- Worker - Cloudflare Workers deployment
- KV Namespace - Key-value storage