Specifying a `-- <command>` or `--proxy` is deprecated and will be removed
Recently noticed this warning when running
wrangler pages dev -- vite
:
I'm curious what the suggestion is for users of vite or similar framework where there is no directory in dev mode?2 Replies
Currently, some frameworks support using bindings in regular dev mode(see this blog post for details on which). As for other frameworks, the reason it was removed was that it doesn’t provide much functionality
The Cloudflare Blog
Blazing fast development with full-stack frameworks and Cloudflare
You can now use your framework’s development server while accessing D1 databases, R2 object stores, AI models, and more. Iterate locally in milliseconds to build sophisticated web apps that run on Cloudflare
Most frameworks don’t dump
_headers
, _redirects
, or the _worker.js
file until you build, in which case the wrangler
proxy would just be straight proxying the framework dev server without any changes