Description
Currently, hosting static sites on Cloudflare Workers requires either:
- Using Cloudflare Pages (separate service)
- Manual configuration with Workers Sites
It would be convenient to have a simpler way to deploy static sites directly from Wrangler.
Proposed Solution
wrangler deploy --static ./dist
This could automatically:
- Upload files to KV or R2
- Generate a worker script to serve the files
- Configure caching headers
- Set up proper routing
Benefits
- Simplified workflow for static sites
- Unified CLI experience
- Better integration with existing build tools
- Lower barrier to entry for new users
Use Case
Many developers build static sites with tools like Vite, Astro, or plain HTML/CSS. Having a one-command deployment would be very helpful.
Description
Currently, hosting static sites on Cloudflare Workers requires either:
It would be convenient to have a simpler way to deploy static sites directly from Wrangler.
Proposed Solution
This could automatically:
Benefits
Use Case
Many developers build static sites with tools like Vite, Astro, or plain HTML/CSS. Having a one-command deployment would be very helpful.