serve-static
serve-static copied to clipboard
Serve static files
I am aware of #7 which was closed a while ago now. However the issue still is occurring for me, using node 7.10.0. I think that is probably because I...
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `::set-output` to `"$GITHUB_OUTPUT"` Instructions for envvar usage from...
For example, when requesting /index.html/, the server is responding with a Content-Type header set to application/octet-stream instead of text/html. `index.js` ```JS import express from "express"; const app = express(); app.use(express.static("public",...
I keep getting this error on **"npm run build"** from this particular file **node_modules/@types/serve-static/index.d.ts:98:67 - error TS2709: Cannot use namespace 'HttpError' as a type.** Node version : 18 The two...
Hi, I've got such a code for my server: ```js import path from 'node:path' import url from 'node:url' import portfinder from 'portfinder' import connect from 'connect' import { WebSocketServer }...
At the moment passing an `immutable: true` option adds an immutable value to the `Cache-Control` header. Ideally the header would be put as a separate `Cache-Control` header entry making such...
This PR fixes [nyc](https://github.com/istanbuljs/nyc) version to 14.1.1 when running tests in node 8 or node 9. `nyc 15.x` requires a `yargs` package version that requires node >=10. I've also added...
## Main Changes This pipeline will proactively report the status of the project (every day and when a push is done to `master` branch) including critical fields (CI-Tests, Contributors, Dependency-Update-Tool,...
besides, `semi`, `@stylistic/space-before-function-paren` is [the only rule added ](https://github.com/ctcpip/eslint-config-express/blob/main/index.cjs#L20) and that is because it is the style that `express` uses today so we should keep it
Just proposing an option for us. We historically were pretty lax about linting since these projects existed before a lot of the more modern setups for linting. I propose we...