This issue tracks running custom builds alongside wrangler's dev and publish commands.
In wrangler1, this is achieved with wrangler.toml configuration of build https://developers.cloudflare.com/workers/cli-wrangler/configuration#build. This is a little confusing to get right.
pages lets you pass a command directly in the cli like so pages dev <folder> -- <command>. This seems to be a little nicer.
So we'll have to support the first type for people migrating to wrangler2, and can add a deprecation warning, and also implement the second style as the way forward.
Assigning to myself since I'm working on this right now.
This issue tracks running custom builds alongside wrangler's
devandpublishcommands.In wrangler1, this is achieved with
wrangler.tomlconfiguration ofbuildhttps://developers.cloudflare.com/workers/cli-wrangler/configuration#build. This is a little confusing to get right.pageslets you pass a command directly in the cli like sopages dev <folder> -- <command>. This seems to be a little nicer.So we'll have to support the first type for people migrating to wrangler2, and can add a deprecation warning, and also implement the second style as the way forward.
Assigning to myself since I'm working on this right now.