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")}