This commit is contained in:
Rizky 2024-08-01 18:00:50 +07:00
parent 2474b88931
commit 88cf1b9875
1 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ export const initFrontEnd = async (
const srv = code.internal.server[id_site]; const srv = code.internal.server[id_site];
if ( if (
filename?.startsWith("node_modules") || filename?.startsWith("node_modules") ||
filename?.startsWith("server.ts") ||
filename?.startsWith("typings") filename?.startsWith("typings")
) )
return; return;
@ -103,7 +104,7 @@ export const initFrontEnd = async (
await fe.ctx.dispose(); await fe.ctx.dispose();
fe.ctx = await initBuildCtx({ id_site, root }); fe.ctx = await initBuildCtx({ id_site, root });
}, 3000); }, 3000);
try { try {
broadcastLoading(); broadcastLoading();
await fe.ctx.rebuild(); await fe.ctx.rebuild();