core: fix static files priority

This commit is contained in:
undefined committed 2022-10-09 11:25:02 +08:00
1 parent 4b09a83ede
commit 52422c33b3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -428,7 +428,7 @@ export async function apply(pluginContext) {
}
return next();
});
for (const addon of global.addons) {
for (const addon of [...global.addons].reverse()) {
const dir = resolve(addon, 'public');
if (!fs.existsSync(dir)) continue;
app.use(cache(dir, {