
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@waynechu/egg-static
Advanced tools
Static server plugin for egg, base on koa-static-cache.
egg-static is a plugin that has been built-in for egg. It is enabled by default.
egg-static support all configurations in koa-static-cache. and with default configurations below:
'/public/'path.join(appInfo.baseDir, 'app/public')truefalse31536000 in prod env, 0 in other envstrue in prod env, false in other envsegg-static provides one more option:
1000.All static files in $baseDir/app/public can be visited with prefix /public, and all the files are lazy loaded.
egg-static will cache the assets after visited, you need to restart the process to update the assets.$baseDir/app/public but you can also define multiple directory by use dir: [dir1, dir2, ...] or dir: [dir1, { prefix: '/static2', dir: dir2 }], static server will use all these directories.// {app_root}/config/config.default.js
exports.static = {
// maxAge: 31536000,
};
Please open an issue here.
FAQs
static server plugin for egg, just fix koa-range lib
We found that @waynechu/egg-static demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.