Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/tidy-ravens-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

Enable the new configuration format in the `cf-wrangler` dev delegate

Projects started through `cf dev` now load `cloudflare.config.ts` and optional `wrangler.config.ts`, matching the configuration used by the delegate's build path.
Comment thread
penalosa marked this conversation as resolved.
6 changes: 3 additions & 3 deletions packages/wrangler/bin/cf-wrangler.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ function runCfWranglerDevFromArgs(parsedArgs) {

function createDevOptions(parsedArgs) {
// Build wrangler dev's full (yargs-derived) options object. Every field
// must be present; we set the four accepted flags plus `wrangler dev`'s
// defaults and leave everything else `undefined`, which makes wrangler's
// ConfigController resolve those exactly as `wrangler dev` would.
// must be present; we set the four accepted flags, force cf's new config
// format, and otherwise use `wrangler dev`'s defaults.
return {
_: [],
$0: "",
Expand All @@ -77,6 +76,7 @@ function createDevOptions(parsedArgs) {
testScheduled: false,
processEntrypoint: false,
experimentalAutoCreate: false,
experimentalNewConfig: true,
types: false,
disableDevRegistry: false,
config: undefined,
Expand Down
Loading