fix
This commit is contained in:
parent
26c61fe775
commit
3badb79bc8
|
|
@ -119,13 +119,13 @@ export const initFrontEnd = async (
|
||||||
filename?.endsWith(".css") ||
|
filename?.endsWith(".css") ||
|
||||||
filename?.endsWith(".html"))
|
filename?.endsWith(".html"))
|
||||||
) {
|
) {
|
||||||
if (!fe.rebuilding) {
|
if (typeof fe !== 'undefined' && !fe.rebuilding) {
|
||||||
fe.rebuilding = true;
|
fe.rebuilding = true;
|
||||||
await fe.ctx.rebuild();
|
await fe.ctx.rebuild();
|
||||||
fe.rebuilding = false;
|
fe.rebuilding = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!srv.rebuilding && srv.ctx) {
|
if (typeof srv !== 'undefined' && !srv.rebuilding && srv.ctx) {
|
||||||
srv.rebuilding = true;
|
srv.rebuilding = true;
|
||||||
await srv.ctx.rebuild();
|
await srv.ctx.rebuild();
|
||||||
await server.init(id_site);
|
await server.init(id_site);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue