core: fix static dir

This commit is contained in:
undefined committed 2023-05-19 10:59:24 +08:00
1 parent 47ec7e3934
commit 86dc5765df
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ export async function apply(ctx: Context) {
for (const f of global.addons) {
const dir = path.join(f, 'public');
// eslint-disable-next-line no-await-in-loop
if (await fs.pathExists(dir)) await fs.copy(dir, '/root/.hydro/static');
if (await fs.pathExists(dir)) await fs.copy(dir, path.join(os.homedir(), '.hydro/static'));
}
await ctx.parallel('app/listen');
logger.success('Server started');