mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 04:21:55 +00:00
run social-previews in any non-dev env
This commit is contained in:
@@ -30,7 +30,7 @@ const createPostSocialPreviewPng = async (post: PostInfo) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// For non-prod builds, this isn't needed
|
// 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");
|
const posts = getAllPosts("en");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user