4 ms·
Great update! I wonder if Fresh plans to use Deno's (new) HTTP server[1]. Benchmarks for that look incredible (compared to Express). Off-topic but how does the
by obviyus 4y ago
Great update! I wonder if Fresh plans to use Deno's (new) HTTP server[1]. Benchmarks for that look incredible (compared to Express).
Off-topic but how does the video[2] under Preact Dev Tools look so sharp yet only weight 43KB? Edit: nevermind, the downloaded file's 2.9MB. Must be something up with Chrome's network tab.
[1]: https://deno.com/blog/v1.25#new-experimental-http-server-api https://deno.com/blog/v1.25#new-experimental-http-server-api
[2]: https://deno.com/fresh-1.1/preact_devtools.mp4 https://deno.com/fresh-1.1/preact_devtools.mp4
- rough-sea 4y agohttps://deno.com/blog/fresh-1.1#experimental-denoserve-support https://deno.com/blog/fresh-1.1#experimental-denoserve-suppo... Just use --unstable to enable it.
- lucacasonato 4y agoYou also need to pass a `experimentalDenoServe: true` option in the options bag passed to `start()` in your `main.ts` file. I forgot to add this to the post initially. Have retroactively added it now :)
- MarkBennett 4y agoAre there any benchmarks with the new server yet? Would be keen to see how it compares to the existing server as benchmarking on my machine showed a significant improvement over the existing http server in stdlib.