Cloudflare Workers® aims to be the easiest and most powerful platform for developers to build and deploy their applications. With Workers, you can quickly solve problems without having to wonder: “is this going to scale?”
In the spirit of quickly solving problems, we’re excited to launch three new improvements to the Workers experience, so you can take your next idea and ship it even faster.
We’ve also updated the default Worker template to help you go a few steps beyond the typical “Hello, World!”. When you open the editor, you’ll now see a few examples that demonstrate how to redirect requests, modify headers, and parse responses.
Customize your build scripts
For developers who want to deploy more complex applications, like those with external libraries or written in other languages like TypeScript, we recommend using our command-line tool, wrangler.
That’s why we’re excited to release custom builds for wrangler! Now you can provide wrangler with a custom build script and upload directory, which works with all of the wrangler commands including
wrangler dev and
Viewing logs and exceptions
Ever wanted to see the
console.log() output or uncaught exceptions from a deployed Worker?
In case you missed it,
wrangler tail allows you to see a live stream of your Worker’s logs and exceptions. Today, we’re improving
wrangler tail by making it easier to use and more accessible to developers.
First, we wanted to improve the terminal output. Previously,
wrangler tail would only output log entries as JSON. While this was useful when piping through to tools like
jq, it was generally hard to digest. That’s why we created a new “pretty” format that is much easier to read and takes full advantage of your terminal’s color codes.
$ wrangler tail --format=<json|pretty>
If you have suggestions for how we can improve
wrangler tail, feel free to pop in the #wrangler channel on the Workers Discord. We’re excited to see what you ship with these improvements!
A sneak preview
As we like to say at Cloudflare, we’re just getting started. While we have plans to add improvements to wrangler... where else could we introduce logs?