Jürgen Leschner
CDCloudflare Developers
•Created by vanpana on 1/17/2025 in #workers-help
Sharp JS
@vanpana Based on the comment here, I believe the wasm version of sharp will not run on Cloudflare Workers right now.
3 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
Got something working with no preset, no server - just SSG + pages functions
https://github.com/jldec/create-solid-ssg/tree/main
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
aah - totally understandable - these starters are not super-clear about when they give you a static site or expect some server rendering.
https://x.com/jldec/status/1875887369846755645
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
@LoLesttK It was not obvious to me from the solid docs how to force solid to generate a static-only bundle (no server, no preset). If that's what you're doing please share your app.config and clarify how you are building and deploying to pages.
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
My understanding is that if you're using the preset: "cloudflare-pages" then solid will generate _worker.js in dist, which will override the functions directory when you deploy that.
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
if you can share the repo (or a stripped down copy which has the same problem), and details of how you deploy to Cloudflare, we could take a closer look.
13 replies
CDCloudflare Developers
•Created by Kris on 1/3/2025 in #workers-help
pnpm with Workers Builds
And if you set the version to 9, it will pull the latest (v9.15.2) even if the build environment already has say v9.10 installed.
9 replies
CDCloudflare Developers
•Created by Kris on 1/3/2025 in #workers-help
pnpm with Workers Builds
Setting the PNPM_VERSION for the build, also appears to force the use of pnpm over npm, even if there is no lockfile (TIL 🎉)
9 replies
CDCloudflare Developers
•Created by Kris on 1/3/2025 in #workers-help
pnpm with Workers Builds
9 replies
CDCloudflare Developers
•Created by Kris on 1/3/2025 in #workers-help
pnpm with Workers Builds
9 replies
CDCloudflare Developers
•Created by Kris on 1/3/2025 in #workers-help
pnpm with Workers Builds
@Kris it appears that you can set the desired pnpm version in the workers build config (like for cloudflare pages described here)
9 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
Same repo auto-deployed via link to GitHub https://pages-function-gh.pages.dev/
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
Repo deployed manually using wrangler https://pages-function-7xk.pages.dev/
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
I created this minimal repo to try it out
https://github.com/jldec/pages-function
13 replies
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
@LoLesttK
It took me a while to find this as well
https://developers.cloudflare.com/pages/get-started/direct-upload/#functions
Drag and drop deployments made from the Cloudflare dashboard do not currently support compiling a functions folder of Pages Functions. To deploy a functions folder, you must use Wrangler. When deploying a project using Wrangler, if a functions folder exists where the command is run, that functions folder will be uploaded with the project.
13 replies
CDCloudflare Developers
•Created by Jürgen Leschner on 1/3/2025 in #durable-objects
Cloudflare adapter is unable to export D...
Thanks @Hello, I’m Allie! - if you happen to have an issue or link to track this, please let me know 🙏
3 replies