You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Cloudflare Pages _routes.json specification (#6441)
When a SvelteKit project is deployed to Cloudflare Pages, the server-side code is supported through Pages Functions (currently in beta). Unfortunately, by using Functions, each request must go through the server-side Functions code even if it doesn't need to. For instance, an immutable asset request to https://kit.svelte.dev/_app/immutable/assets/_layout-ab34ca4f.css would first have to route through Functions.
This is problematic since the request would "count" as a request to Functions even though only a static asset was served. Further, there is a slight amount of added latency.
This change exposes a set of includes and excludes based on static files generated.
* use writeFileSync over writeFile, for consistency with rest of codebase
* code style stuff
* tweak changeset
Co-authored-by: Rich Harris <[email protected]>
0 commit comments