From fe26189a85394bcd334726319153cad08c5d4f50 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 26 Apr 2022 16:26:02 -0400 Subject: [PATCH] add some docs about cloudflare functions --- packages/adapter-cloudflare/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/adapter-cloudflare/README.md b/packages/adapter-cloudflare/README.md index 22adfb5267be..d4243d7ebebd 100644 --- a/packages/adapter-cloudflare/README.md +++ b/packages/adapter-cloudflare/README.md @@ -83,6 +83,10 @@ export async function post({ request, platform }) { > `platform.env` is only available in the production build. Use [wrangler](https://developers.cloudflare.com/workers/cli-wrangler) to test it locally +## Notes + +Functions contained in the `/functions` directory at the project's root will _not_ be included in the deployment, which is compiled to a [single `_worker.js` file](https://developers.cloudflare.com/pages/platform/functions/#advanced-mode). Functions should be implemented as [endpoints](https://kit.svelte.dev/docs/routing#endpoints) in your SvelteKit app. + ## Changelog [The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-cloudflare/CHANGELOG.md).