
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@eggjs/static
Advanced tools
Static server plugin for egg, base on @eggjs/koa-static-cache.
@eggjs/static is a plugin that has been built-in for egg. It is enabled by default.
@eggjs/static support all configurations in @eggjs/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 envs@eggjs/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.
@eggjs/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.ts
export default {
static: {
// maxAge: 31536000,
},
};
Please open an issue here.
Made with contributors-img.
FAQs
static server plugin for egg
The npm package @eggjs/static receives a total of 0 weekly downloads. As such, @eggjs/static popularity was classified as not popular.
We found that @eggjs/static demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.