run social-previews in any non-dev env

This commit is contained in:
James Fenn
2022-11-18 21:56:29 -05:00
parent c537e63420
commit e5ebe4c666

View File

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