Using Pages direct uploads with Pages Functions

Curious if this is possible. I have a build process in a monorepo, which Pages doesn't support well, so I'm using a custom upload. This works great using the cloudflare pages Github action, but I'm not sure if I'm able to add functions with this process. Would be great to not need yet another workers project for an endpoint. Does anyone know if this is possible? I've checked the docs here: https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/ Currently using this action: https://github.com/cloudflare/pages-action
Use Direct Upload with continuous integration · Cloudflare Pages docs
Cloudflare Pages now supports directly uploading prebuilt assets, allowing you to use custom build steps for your applications and deploy to Pages …
GitHub
GitHub - cloudflare/pages-action
Contribute to cloudflare/pages-action development by creating an account on GitHub.
1 Reply
HareBear
HareBear17mo ago
Ah great, I just realized there's a closed task on the GH action that hints at how to set this up: https://github.com/cloudflare/pages-action/issues/1 Seems that all that's needed is to set the working directory to the directory that contains the functions directory. Thanks!
GitHub
Add workingDirectory · Issue #1 · cloudflare/pages-action
This'll help folks with monorepos or more non-standard project structures.
Want results from more Discord servers?
Add your server