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"); /**