mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix static files priority
This commit is contained in:
1 parent
4b09a83ede
commit
52422c33b3
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.0.11",
|
"version": "4.0.12",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ export async function apply(pluginContext) {
|
|||||||
}
|
}
|
||||||
return next();
|
return next();
|
||||||
});
|
});
|
||||||
for (const addon of global.addons) {
|
for (const addon of [...global.addons].reverse()) {
|
||||||
const dir = resolve(addon, 'public');
|
const dir = resolve(addon, 'public');
|
||||||
if (!fs.existsSync(dir)) continue;
|
if (!fs.existsSync(dir)) continue;
|
||||||
app.use(cache(dir, {
|
app.use(cache(dir, {
|
||||||
|
|||||||
Reference in new issue
Block a user