add support for config migration

This commit is contained in:
undefined committed 2025-03-16 01:13:08 +08:00
1 parent e0628c6197
commit f5eab3b87b
14 files changed
+206 -151

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
problemCount,
discussionCount,
recordCount,
addons: global.addons,
addons: Object.values(global.addons),
memory: inf.memory,
osinfo: inf.osinfo,
cpu: inf.cpu,
+1 -1
View File
@@ -106,7 +106,7 @@ export async function apply(ctx: Context) {
}
});
for (const addon of [...global.addons].reverse()) {
for (const addon of [...Object.values(global.addons)].reverse()) {
const dir = resolve(addon, 'public');
if (!fs.existsSync(dir)) continue;
server.addServerLayer(`${addon}_public`, cache(dir, {