From 595735b1a41130b2890e311fa14353b800ce521b Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 8 Aug 2024 16:26:12 +0700 Subject: [PATCH] fix --- pkgs/utils/prod-index.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/utils/prod-index.ts b/pkgs/utils/prod-index.ts index 0d37424..72c07f5 100644 --- a/pkgs/utils/prod-index.ts +++ b/pkgs/utils/prod-index.ts @@ -1,21 +1,11 @@ -import { g } from "./global"; +// import { g } from "./global"; -const preload: string[] = []; +// const preload: string[] = []; export const prodIndex = ( site_id: string, prasi: { page_id?: string; params?: any } ) => { - if (preload.length === 0) { - Object.keys(g.deploy.content?.code.core || {}) - .filter((e) => e.endsWith(".woff") || e.endsWith(".woff2")) - .forEach((e) => { - preload.push( - ` ` - ); - }); - } - return { head: [] as string[], body: [] as string[], @@ -31,7 +21,6 @@ export const prodIndex = ( ${this.head.join("\n")} -${preload.join("\n")}