This commit is contained in:
Rizky 2024-06-11 16:08:57 +07:00
parent 26c61fe775
commit 3badb79bc8
1 changed files with 2 additions and 2 deletions

View File

@ -119,13 +119,13 @@ export const initFrontEnd = async (
filename?.endsWith(".css") ||
filename?.endsWith(".html"))
) {
if (!fe.rebuilding) {
if (typeof fe !== 'undefined' && !fe.rebuilding) {
fe.rebuilding = true;
await fe.ctx.rebuild();
fe.rebuilding = false;
}
if (!srv.rebuilding && srv.ctx) {
if (typeof srv !== 'undefined' && !srv.rebuilding && srv.ctx) {
srv.rebuilding = true;
await srv.ctx.rebuild();
await server.init(id_site);