Closed TheHadiAhmadi closed 2 years ago
here is a demo which uses latest sveltekit version https://sveltekit.deno.dev https://github.com/TheHadiAhmadi/sveltekit-deno
Thank you, looks pretty good! I was thinking of removing Oak as well, the only reason I didn't do it was due to there being non-negligible logic in their response.send()
function, including etag generation: https://github.com/oakserver/oak/blob/main/send.ts
Would you be interested in opening a PR or are you thinking of maintaining you own fork?
I am Interested on opening PR, please check #20 and tell me what do you think.
I don't know much about etag and oak's response.send()
, using Deno.readFile
was suggested in deno deploy docs.
deno's std file server is doing something with etag, also handles content-type
https://github.com/sveltejs/kit/pull/3384
today I worked on solving this issue by dropping oak and using Deno.listen....
https://github.com/TheHadiAhmadi/svelte-adapter-deno