From be527c382e13ffc3eadf637ca1a6e000e3fb7c9a Mon Sep 17 00:00:00 2001 From: shahanneda Date: Wed, 1 Jun 2022 23:14:30 -0700 Subject: [PATCH] Updated ci check --- scripts/optimize-images.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/optimize-images.ts b/scripts/optimize-images.ts index 74972424..555a9fd3 100644 --- a/scripts/optimize-images.ts +++ b/scripts/optimize-images.ts @@ -95,7 +95,7 @@ export async function optimizeImages() { if (alreadyOptimizedImageHashes.has(fileHash)) { console.log(`Skipping ${imagePath}`); return; - } else if (process.env.CI === "true") { + } else if (process.env.CI) { // Need to optimize image on production, not ideal since image wont be cached for later deploys console.warn( `New image found to optimize: ${imagePath} Please run npm run build:images locally!`