diff --git a/tools/update-prod-static b/tools/update-prod-static index 37c490bb61..4aa0b80b21 100755 --- a/tools/update-prod-static +++ b/tools/update-prod-static @@ -42,8 +42,10 @@ run(["./tools/setup/build_pygments_data"]) # Build time zone data run(["./tools/setup/build_timezone_values"]) -# Generate landing page images of various sizes and formats. -run(["tools/setup/generate_landing_page_images.py"]) +# Generate landing page images of various sizes and formats if we will +# need them. +if settings.CORPORATE_ENABLED: + run(["./tools/setup/generate_landing_page_images.py"]) # Create webpack bundle run(["./tools/webpack", "--quiet"])