From 82ca3031dd944fd0974e1fd81192525373bc491e Mon Sep 17 00:00:00 2001 From: bymyself Date: Sun, 20 Jul 2025 18:50:40 -0700 Subject: [PATCH] Fix environment variable access for Vite compatibility Changed from process.env to import.meta.env in src/config/comfyDomain.ts to fix CI timeout in i18n collection script. In Vite, process.env is not available and causes initialization issues. --- src/config/comfyDomain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/comfyDomain.ts b/src/config/comfyDomain.ts index 0afc388a3..706cf78fd 100644 --- a/src/config/comfyDomain.ts +++ b/src/config/comfyDomain.ts @@ -3,7 +3,7 @@ * Forkers can change the base domain to use their own */ export const COMFY_BASE_DOMAIN = - process.env.VITE_COMFY_BASE_DOMAIN || 'comfy.org' + import.meta.env.VITE_COMFY_BASE_DOMAIN || 'comfy.org' const WEBSITE_BASE_URL = `https://www.${COMFY_BASE_DOMAIN}`