Updated env check
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bead08ed09
commit
a3bd8da8cc
|
@ -95,7 +95,7 @@ export async function optimizeImages() {
|
|||
if (alreadyOptimizedImageHashes.has(fileHash)) {
|
||||
console.log(`Skipping ${imagePath}`);
|
||||
return;
|
||||
} else if (process.env.CI == "production") {
|
||||
} else if (process.env.CI === "true") {
|
||||
// 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!`
|
||||
|
|
Loading…
Reference in New Issue