Last active
April 17, 2025 05:03
-
-
Save Hebilicious/88e5a444f42b8dc09fb86dfa865c6ed3 to your computer and use it in GitHub Desktop.
Cloudflare Pages and Bun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bun is now officially supported and these environments variables are no longer needed. Keeping this gist for legacy purposes. | |
# SKIP_DEPENDENCY_INSTALL=true | |
# UNSTABLE_PRE_BUILD=asdf install bun latest && asdf global bun latest && bun i |
Note: When using Bun to install packages for Astro sites on Cloudflare Pages, you will have to manually install Sharp using
npm
for now, until this bug is resolved.In addition to the above environment variables, your build step should be:
npm i --no-save sharp && bun run build
Sharp does now work with the Bun Runtime: lovell/sharp#3511 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My Greetings,
Use this guide and have a result
https://github.com/aquaPumpers/Strapi-Aquapumpers
TY