-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook: static server crashes every now and then #1280
Labels
maintenance
Code refactoring, project structure, dev tooling (storybook, dev server, npm tasks...)
Comments
florian-sanders-cc
added
the
maintenance
Code refactoring, project structure, dev tooling (storybook, dev server, npm tasks...)
label
Dec 11, 2024
florian-sanders-cc
added a commit
that referenced
this issue
Dec 19, 2024
- Remove the `node-static` dependency, - Remove the `start` npm script, - Add `.htaccess` to be used by the static Clever App (Apache server) Fixes #1280
florian-sanders-cc
added a commit
that referenced
this issue
Dec 19, 2024
- Remove the `node-static` dependency, - Remove the `start` npm script, - Add `.htaccess` to be used by the static Clever App (Apache server) - The `.htaccess` file must be moved to `storybook-static` once the build is over. Fixes #1280
florian-sanders-cc
added a commit
that referenced
this issue
Dec 19, 2024
- Remove the `node-static` dependency, - Remove the `start` npm script, - Add `.htaccess` to be used by the static Clever App (Apache server), - Adapt the storybook build process to copy the `.htaccess` file to the `storybook-static` directory. Fixes #1280
florian-sanders-cc
added a commit
that referenced
this issue
Dec 19, 2024
- Remove the `node-static` dependency, - Remove the `start` npm script, - Add `.htaccess` to be used by the static Clever App (Apache server), - Adapt the storybook build process to copy the `.htaccess` file to the `storybook-static` directory. Fixes #1280
florian-sanders-cc
added a commit
that referenced
this issue
Dec 19, 2024
- Remove the `node-static` dependency, - Remove the `start` npm script, - Add `.htaccess` to be used by the static Clever App (Apache server), - Adapt the storybook build process to copy the `.htaccess` file to the `storybook-static` directory. Fixes #1280
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
maintenance
Code refactoring, project structure, dev tooling (storybook, dev server, npm tasks...)
Context
For our prod storybook instance (https://www.clever-cloud.com/doc/clever-components/?path=/docs/readme--docs), we rely on
node-static
as a simple static Node.js server.It seems that every now and then, the instance crashes and reboots with the following error:
TLDR; the server tries to send a response but it has already sent one.
There is an open issue about this error on the
node-static
repo: cloudhead/node-static#241I couldn't determine what types of requests triggered the error so I still need to dig a little bit but we may need to change the static server we use.
node-static
hasn't been updated in 6 years, which is not necessarily an issue but even if it doesn't pull many dependencies, the ones it pulls are fairly outdated.The text was updated successfully, but these errors were encountered: