1. Docs

Cloudflare Pages

By default Sveltekit comes with adapter-auto and it works with Cloudflare Pages out of the box without any modification.

However it is recommended to install adapter-cloudflare if you plan to stay on Cloudflare Pages.

Sveltekit Docs has a detailed doc page on this. You can check it out here.

Make sure to set NODE_VERSION environment variable in Cloudflare Pages to 20.15.1 (latest LTS) because it has been seen that Cloudflare does not detect correct Nodejs version from the project and fallbacks to older LTS version, which fails the deployment often.