From 407c51df93291c82b8de8b692076342b8b63f591 Mon Sep 17 00:00:00 2001 From: self <self@awful.systems> Date: Mon, 21 Aug 2023 10:12:13 -0700 Subject: [PATCH] temporarily disable icon creation disable icon creation due to a bug where icons can somehow get corrupted --- src/server/utils/create-ssr-html.tsx | 2 +- src/server/utils/generate-manifest-json.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/utils/create-ssr-html.tsx b/src/server/utils/create-ssr-html.tsx index 0958588..ca8e3b6 100644 --- a/src/server/utils/create-ssr-html.tsx +++ b/src/server/utils/create-ssr-html.tsx @@ -29,7 +29,7 @@ export async function createSsrHtml( `<script nonce="${cspNonce}"`, ); - if (!appleTouchIcon) { + if (false) { appleTouchIcon = site?.site_view.site.icon ? `data:image/png;base64,${await sharp( await fetchIconPng(site.site_view.site.icon), diff --git a/src/server/utils/generate-manifest-json.ts b/src/server/utils/generate-manifest-json.ts index 3821b02..52d9ffb 100644 --- a/src/server/utils/generate-manifest-json.ts +++ b/src/server/utils/generate-manifest-json.ts @@ -37,7 +37,7 @@ export default async function ({ path.join(defaultLogoPathDirectory, `icon-${size}x${size}.png`), ).then(buf => buf.toString("base64")); - if (icon) { + if (false) { src = await sharp(icon) .resize(size, size) .png() -- 2.44.1