kit
kit copied to clipboard
web development, streamlined
### Describe the problem I have to create an endpoint, that servers static content (like an image), in svelte kit there is a special method for that case: - https://www.youtube.com/watch?v=m4G-6dyF1MU...
resolves https://github.com/sveltejs/kit/issues/12446 just an experiment... wanted to see if we could implement `read` inside edge functions by just requesting them. might be useful in a pinch --- ### Please don't...
Following #13851 I don't mind `platform.context` but it seems this is creating some inconsistency for people using [create-cloudflare](https://developers.cloudflare.com/pages/get-started/c3/) today. For the record, as far as I can remember, [getPlatformProxy](https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy) uses...
### Describe the bug Using the sveltekit fetch in a +page.server.ts load function will cause an Internal Error whenever a cookie is set in the hooks.server.ts handle function. ### Reproduction...
fixes https://github.com/sveltejs/kit/issues/13832 This PR ensures that if the `main` key is found in the Wrangler configuration file, that's enough to know that we're building for Cloudflare Workers. Previously, it would...
### Describe the bug Hi SvelteKit Team, I'm encountering a persistent server-side `TypeError: Cannot read properties of undefined (reading 'fetch')` when deploying a SvelteKit application to Cloudflare Workers. This error...
fixes https://github.com/sveltejs/kit/issues/9355 This PR changes the server data to return the updated layout data from a layout node if a child load function uses `parent`. Previously, the child load function...
fixes https://github.com/sveltejs/kit/issues/10735 This PR adds an `Accept` header to the prerender requests, preferring `text/html` first then whatever with `*/*`. Previously, it would[ always end up as `*/*` during content negotiation](https://github.com/sveltejs/kit/blob/435984bf61b047d1e1a8efe88354ca7ac4e9109f/packages/kit/src/runtime/server/endpoint.js#L91-L92),...
### Describe the bug After upgrading to `@sveltejs/[email protected]` deployments no longer work, the `./.svelte-kit/cloudflare` now depends on `./.svelte-kit/output` and cannot resolve external dependencies. (in my case `@ts-rest/core`). ### Reproduction Deployment...
Hello Svelte Team, I send you this PR to make `handleFetch` a shared hook that can be used on both client and server side. ### Motivation I'm working a hybrid...