https://developers.cloudflare.com/workers/static-assets/ Pages will eventually merge into Workers (n

https://developers.cloudflare.com/workers/static-assets/ Pages will eventually merge into Workers (not for a long time probably, at least Pages is unlikely to “stop working” for a long time would be my guess), and you can serve static assets from Workers now (in beta). You can use frameworks too, same as pages. See https://developers.cloudflare.com/workers/frameworks/framework-guides/svelte/ for Svelte. Either way you won’t need the functions folder, as if you’re using Svelte, just use its approach for server-side endpoints.
Cloudflare Docs
Create full-stack applications deployed to Cloudflare Workers.
Cloudflare Docs
Create a Svelte application and deploy it to Cloudflare Workers with Workers Assets.
Was this page helpful?