mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add support for config migration
This commit is contained in:
14 files changed
+206
-151
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user