From e5ebe4c66681165aa5b818cd58c6c2d0334a476e Mon Sep 17 00:00:00 2001 From: James Fenn Date: Fri, 18 Nov 2022 21:56:29 -0500 Subject: [PATCH] run social-previews in any non-dev env --- src/build-scripts/social-previews/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build-scripts/social-previews/index.ts b/src/build-scripts/social-previews/index.ts index 3149d4a2..fcb87d94 100644 --- a/src/build-scripts/social-previews/index.ts +++ b/src/build-scripts/social-previews/index.ts @@ -30,7 +30,7 @@ const createPostSocialPreviewPng = async (post: PostInfo) => { }; // For non-prod builds, this isn't needed -if (!process.env.BUILD_ENV || process.env.BUILD_ENV === "production") { +if (!process.env.BUILD_ENV || process.env.BUILD_ENV !== "dev") { const posts = getAllPosts("en"); /**