storybookjs/storybook

Explore replacing express with fastify in dev server

已关闭

#17,971 创建于 2022年4月15日

 (18 条评论) (3 个反应) (0 位负责人)TypeScript (10,058 个派生)batch import
feature requesthelp wanted

仓库指标

星标
 (89,909 个星标)
PR 合并指标
 (平均合并 7天 22小时) (30 天内合并 184 个 PR)

描述

Is your feature request related to a problem? Please describe Serving content via http2 is beneficial and greatly improves load times when serving many files. This is the case when using using a no-bundler such as the builder-vite plugin

When using builder-vite, file count can easily exceed 1k files. This causes load times to be 🐌 . We can alleviate this by enabling http2 when appropriate.

Describe the solution you'd like When running storybook with https enabled:

# optionally we can also autogenerate the selfsigned cert
# maybe take inspiration from the selfsigned package on npm
start-storybook --https --ssl-cert selfsigned.crt --ssl-key selfsigned.key

storybook assets are served via http2

Describe alternatives you've considered Accept http1.1 bottleneck

Are you able to assist to bring the feature to reality? yes, I can...

Additional context

贡献者指南