Add dedicated blog image upload config separate from product thumbs.

Introduce MULTER_BLOG_IMAGE_* and VITE_BLOG_IMAGE_* env vars with backend multer helper and CMS config wiring for prod builds.
This commit is contained in:
2026-09-16 19:13:23 +02:00
parent e5eb773404
commit 9c7b8470d3
8 changed files with 47 additions and 2 deletions
+3
View File
@@ -15,6 +15,8 @@ interface ImportMetaEnv {
readonly VITE_API_BASE_URL?: string;
readonly VITE_PRODUCT_THUMB_ALLOWED_MIMES?: string;
readonly VITE_PRODUCT_THUMB_MAX_FILE_BYTES?: string;
readonly VITE_BLOG_IMAGE_ALLOWED_MIMES?: string;
readonly VITE_BLOG_IMAGE_MAX_FILE_BYTES?: string;
readonly VITE_SHOP_LOGO_ALLOWED_MIMES?: string;
readonly VITE_SHOP_LOGO_MAX_FILE_BYTES?: string;
readonly VITE_SHOP_FAVICON_ALLOWED_MIMES?: string;
@@ -22,6 +24,7 @@ interface ImportMetaEnv {
readonly VITE_DIGITAL_STOCK_ATTACHMENT_ALLOWED_MIMES?: string;
readonly VITE_DIGITAL_STOCK_ATTACHMENT_MAX_FILE_BYTES?: string;
readonly VITE_VALIDATION_PRODUCT_TITLE_MAX_LENGTH?: string;
readonly VITE_VALIDATION_BLOG_POST_TITLE_MAX_LENGTH?: string;
readonly VITE_VALIDATION_CATEGORY_NAME_MAX_LENGTH?: string;
readonly VITE_VALIDATION_DISCOUNT_CODE_MAX_LENGTH?: string;
readonly VITE_VALIDATION_VARIANT_IMAGES_MAX?: string;