I'm using `wrangler pages deploy` to deploy static files and Pages Functions. I would like to deploy

I'm using
wrangler pages deploy
to deploy static files and Pages Functions. I would like to deploy only the Pages Functions, without deploying the static files. I.e. I'm using
wrangler pages deploy ./build-output ...
, which deploys the static files from
./build-output
and also deploys
./functions
by the file-based routing convention.

So, can I use
wrangler pages deploy
to deploy only the pages functions? If I have an empty directory with only the functions directory, would wrangler pages deploy know to upload the functions but not delete the static files already uploaded?

For context: I'm migrating a Pages project to use other hosting of the static files because of 20K file limit, but would like to keep deploying the Pages Functions
Was this page helpful?