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:
- Build command:
bun astro build
- Build output directory:
/dist
- Root directory:
\
- Build comments on pull requests:
Enabled
Again, if your page flickers, refer to my previous post.
Viola. Happy days.