diff options
author | 2022-11-02 09:40:54 -0300 | |
---|---|---|
committer | 2022-11-02 09:40:54 -0300 | |
commit | 78145c7de5e7edaf6b1a0a66f8b53a0cdeacee37 (patch) | |
tree | 864379012df4efdb8fa488abe824d24f49e77440 | |
parent | a685acf6dee45f71e58a6e027d85a6d17e786b10 (diff) | |
download | astro-78145c7de5e7edaf6b1a0a66f8b53a0cdeacee37.tar.gz astro-78145c7de5e7edaf6b1a0a66f8b53a0cdeacee37.tar.zst astro-78145c7de5e7edaf6b1a0a66f8b53a0cdeacee37.zip |
[docs] cloudflare `directory` nits (#5278)
-rw-r--r-- | packages/integrations/cloudflare/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index 381d69fec..21891c053 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -46,9 +46,9 @@ default `"advanced"` Cloudflare Pages has 2 different modes for deploying functions, `advanced` mode which picks up the `_worker.js` in `dist`, or a directory mode where pages will compile the worker out of a functions folder in the project root. -For most projects the adaptor default of `advanced` will be sufficiant, when in this mode the `dist` folder will contain your compiled project. However if you'd like to use [pages plugins](https://developers.cloudflare.com/pages/platform/functions/plugins/) such as [Sentry](https://developers.cloudflare.com/pages/platform/functions/plugins/sentry/) for example to enable logging, you'll need to use directory mode. +For most projects the adaptor default of `advanced` will be sufficient; the `dist` folder will contain your compiled project. Switching to directory mode allows you to use [pages plugins](https://developers.cloudflare.com/pages/platform/functions/plugins/) such as [Sentry](https://developers.cloudflare.com/pages/platform/functions/plugins/sentry/) or write custom code to enable logging. -In directory mode the adaptor will compile the client side part of you app the same way, but it will move the worker script into a `functions` folder in the project root. The adaptor will only ever place a `[[path]].js` in that folder, allowing you to add additional plugins and pages middleware which can be checked into version control. +In directory mode the adaptor will compile the client side part of you app the same way, but moves the worker script into a `functions` folder in the project root. The adaptor will only ever place a `[[path]].js` in that folder, allowing you to add additional plugins and pages middleware which can be checked into version control. Cloudflare documentation contains more information about [writing custom functions](https://developers.cloudflare.com/pages/platform/functions/). ```ts // directory mode |