From c478d372d56869bffc4dc4c86cf5b88862761dd8 Mon Sep 17 00:00:00 2001 From: Konstantin Nosov Date: Sun, 10 Jul 2022 13:53:04 +0200 Subject: [PATCH 1/2] doc: add notice about custom configuration for CF-pages --- packages/adapter-cloudflare/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/adapter-cloudflare/README.md b/packages/adapter-cloudflare/README.md index eb1deb4c433f..5f554d3893ba 100644 --- a/packages/adapter-cloudflare/README.md +++ b/packages/adapter-cloudflare/README.md @@ -88,6 +88,8 @@ export async function post({ request, platform }) { 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. +If you want to use `_headers` or `_redirects` custom [config files](https://developers.cloudflare.com/pages/platform/headers) to modify cloudflare behaviour you should put those configs to `/static` folder of yours SvelteKit project, NOT to the root of SvelteKit project. + ## Changelog [The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-cloudflare/CHANGELOG.md). From 4479b03423d6ec39bb606201a242a868f361c7a8 Mon Sep 17 00:00:00 2001 From: Konstantin Nosov Date: Sun, 10 Jul 2022 07:32:14 -0700 Subject: [PATCH 2/2] Update packages/adapter-cloudflare/README.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- packages/adapter-cloudflare/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/adapter-cloudflare/README.md b/packages/adapter-cloudflare/README.md index 5f554d3893ba..0ff65b1d66d6 100644 --- a/packages/adapter-cloudflare/README.md +++ b/packages/adapter-cloudflare/README.md @@ -88,7 +88,7 @@ export async function post({ request, platform }) { 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. -If you want to use `_headers` or `_redirects` custom [config files](https://developers.cloudflare.com/pages/platform/headers) to modify cloudflare behaviour you should put those configs to `/static` folder of yours SvelteKit project, NOT to the root of SvelteKit project. +If you want to use `_headers` or `_redirects` custom [config files](https://developers.cloudflare.com/pages/platform/headers) to modify cloudflare behaviour you should put those configs in the `/static` folder of your SvelteKit project. ## Changelog