From 598fbfd9b4f793479c3231b851d75e95dba2bc03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20T=C3=B6rnqvist?= Date: Wed, 29 Mar 2023 16:21:04 +0200 Subject: [PATCH] Add bundle option docs --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 290919d..9258ae5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Cloudflare Pages GitHub Action + # Cloudflare Pages GitHub Action GitHub Action for creating Cloudflare Pages deployments, using the new [Direct Upload](https://developers.cloudflare.com/pages/platform/direct-upload/) feature and [Wrangler](https://developers.cloudflare.com/pages/platform/direct-upload/#wrangler-cli) integration. @@ -76,6 +76,10 @@ manually by adding the argument `branch: YOUR_BRANCH_NAME`. By default Wrangler will run in the root package directory. If your app lives in a monorepo and you want to run Wrangler from its directory, add `workingDirectory: YOUR_PACKAGE_DIRECTORY`. +### Bundling + +When using [Advanced mode](https://developers.cloudflare.com/pages/platform/functions/advanced-mode/) Pages Functions will by default bundle your `_worker.js` file. If you want to disable this, add `bundle: false`. + ### Wrangler v3 You can use the newly released [Wrangler v3](https://blog.cloudflare.com/wrangler3/) with the `wranglerVersion` property.