kit icon indicating copy to clipboard operation
kit copied to clipboard

add support ot $app/server read() method to cloudflare pages adapter

Open nosovk opened this issue 1 year ago • 2 comments

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
  • https://kit.svelte.dev/docs/modules#$app-server-read

Describe the proposed solution

unfortunately those methods do not work with cloudflare adapter. It would be nice to implement it somehow

Alternatives considered

For now I've just stored base64 encoded asset in ts file.

Importance

would make my life easier

Additional Information

No response

nosovk avatar Jul 07 '24 16:07 nosovk