Skip to content

Deploying to Cloudflare Pages using Bun

Published: at 22:25

Deploying to Cloudflare Pages using Bun

Cloudflare v2 build system supports Bun out-of-the-box, nice!

Also, unlike v1, v2 supports any version of Node.js, Python, Go, Bun, Yarn, pnpm, you name it…

To enable v2 build system for the project, double check Build system version under the Builds & deployments section.

As for environment variables, I left production variables as blank - the default versions are already good enough for me.

Build configurations:

Again, if your page flickers, refer to my previous post.

Viola. Happy days.

Leave a comment 💬