Closed 43081j closed 1 month ago
CI is running/has finished running commands for commit 6c3a0bb1eee028f7a5fccc86194ac333a36f0280. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
Sent with 💌 from NxCloud.
@JReinhold this is where I got to with polka
I may not have much time over the next few days, so if you do get time, feel free to use and push to this branch
few things to note:
app
back to router
or whatever it was before, now that this uses polkasirv
need manually testingPolka.Polka
which isn't ideal. maybe we should have a wrapper or dumbed down interface around it which we ship (so we're not tied into polka)Thank you! 🙏
I'll make sure it gets over the finish line next week.
staticDirs
.storybook/middleware.js
scripts
Failed to publish canary version of this pull request, triggered by @JReinhold. See the failed workflow run at: https://github.com/storybookjs/storybook/actions/runs/11161442195
Failed to publish canary version of this pull request, triggered by @JReinhold. See the failed workflow run at: https://github.com/storybookjs/storybook/actions/runs/11161893237
Couldn't test rsbuild because of https://github.com/rspack-contrib/storybook-rsbuild/issues/136, but looking at the source it doesn't look like they're depending on any express-specific behavior in the router
of start()
:
Same story for Modern Web, they don't yet support Storybook 8 so I couldn't test it, but their start()
code looks good too:
https://github.com/modernweb-dev/web/blob/master/packages/storybook-builder/src/index.ts#L60-L133
🎉
Simple time-to-first-render benchmarks for 8.4.0-alpha.4
and 8.4.0-alpha.5
indicate that the performance impact, if any, is negligible.
Closes #29083
What I did
Migrates from
express
topolka
as the internal web server.Work in progress
Still WIP as there's some leftover changes from the old
connect
branch we can probably discard/revert now.Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
N/A yet
Documentation
Checklist for Maintainers
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli/src/sandbox-templates.ts
[ ] Make sure this PR contains one of the labels below:
Available labels
- `bug`: Internal changes that fixes incorrect behavior. - `maintenance`: User-facing maintenance tasks. - `dependencies`: Upgrading (sometimes downgrading) dependencies. - `build`: Internal-facing build tooling & test updates. Will not show up in release changelog. - `cleanup`: Minor cleanup style change. Will not show up in release changelog. - `documentation`: Documentation **only** changes. Will not show up in release changelog. - `feature request`: Introducing a new feature. - `BREAKING CHANGE`: Changes that break compatibility in some way with current major version. - `other`: Changes that don't fit in the above categories.🦋 Canary release
This pull request has been released as version
0.0.0-pr-29230-sha-6c3a0bb1
. Try it out in a new sandbox by runningnpx storybook@0.0.0-pr-29230-sha-6c3a0bb1 sandbox
or in an existing project withnpx storybook@0.0.0-pr-29230-sha-6c3a0bb1 upgrade
.More information
| | | | --- | --- | | **Published version** | [`0.0.0-pr-29230-sha-6c3a0bb1`](https://npmjs.com/package/storybook/v/0.0.0-pr-29230-sha-6c3a0bb1) | | **Triggered by** | @JReinhold | | **Repository** | [43081j/storybook](https://github.com/43081j/storybook) | | **Branch** | [`without-express-polka`](https://github.com/43081j/storybook/tree/without-express-polka) | | **Commit** | [`6c3a0bb1`](https://github.com/43081j/storybook/commit/6c3a0bb1eee028f7a5fccc86194ac333a36f0280) | | **Datetime** | Tue Oct 8 09:18:38 UTC 2024 (`1728379118`) | | **Workflow run** | [11232403641](https://github.com/storybookjs/storybook/actions/runs/11232403641) | To request a new release of this pull request, mention the `@storybookjs/core` team. _core team members can create a new canary release [here](https://github.com/storybookjs/storybook/actions/workflows/canary-release-pr.yml) or locally with `gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=29230`_Greptile Summary
This PR migrates Storybook's internal web server from Express to Polka, aiming to reduce transitive dependencies and potentially improve performance.
code/core/src/core-server/dev-server.ts
, updating server initialization and middleware usagesirv
instead ofexpress.static
in multiple files